Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69072f6e authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Fix __get_cpu_var in preemption-enabled area.



Reported by Mariusz Kozlowski.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 062ea6d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,10 +23,11 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers) = { 0, };

void flush_tlb_pending(void)
{
	struct mmu_gather *mp = &__get_cpu_var(mmu_gathers);
	struct mmu_gather *mp;

	preempt_disable();

	mp = &__get_cpu_var(mmu_gathers);
	if (mp->tlb_nr) {
		flush_tsb_user(mp);