1
0
Fork 0

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

Reported by Mariusz Kozlowski.

Signed-off-by: David S. Miller <davem@davemloft.net>
wifi-calibration
David S. Miller 2008-03-26 04:25:00 -07:00
parent 062ea6d36c
commit 69072f6e8e
1 changed files with 2 additions and 1 deletions

View File

@ -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);