Skip to content

Commit 1a9f064

Browse files
rustyrusselltorvalds
authored andcommitted
m32r: make flush_cpumask non-volatile.
We cast away the volatile, but really, why make it volatile at all? We already do a mb() inside the cpumask_empty() loop. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 95c607d commit 1a9f064

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/m32r/kernel/smp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static volatile unsigned long flushcache_cpumask = 0;
4545
/*
4646
* For flush_tlb_others()
4747
*/
48-
static volatile cpumask_t flush_cpumask;
48+
static cpumask_t flush_cpumask;
4949
static struct mm_struct *flush_mm;
5050
static struct vm_area_struct *flush_vma;
5151
static volatile unsigned long flush_va;
@@ -415,7 +415,7 @@ static void flush_tlb_others(cpumask_t cpumask, struct mm_struct *mm,
415415
*/
416416
send_IPI_mask(&cpumask, INVALIDATE_TLB_IPI, 0);
417417

418-
while (!cpumask_empty((cpumask_t*)&flush_cpumask)) {
418+
while (!cpumask_empty(&flush_cpumask)) {
419419
/* nothing. lockup detection does not belong here */
420420
mb();
421421
}
@@ -468,7 +468,7 @@ void smp_invalidate_interrupt(void)
468468
__flush_tlb_page(va);
469469
}
470470
}
471-
cpumask_clear_cpu(cpu_id, (cpumask_t*)&flush_cpumask);
471+
cpumask_clear_cpu(cpu_id, &flush_cpumask);
472472
}
473473

474474
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/

0 commit comments

Comments
 (0)