[SPARC64]: Fix __get_cpu_var in preemption-enabled area.
Reported by Mariusz Kozlowski. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
062ea6d36c
commit
69072f6e8e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue