Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Rusty Russell and committed by
Linus Torvalds
1a9f064f 95c607d9

+3 -3
+3 -3
arch/m32r/kernel/smp.c
··· 45 45 /* 46 46 * For flush_tlb_others() 47 47 */ 48 - static volatile cpumask_t flush_cpumask; 48 + static cpumask_t flush_cpumask; 49 49 static struct mm_struct *flush_mm; 50 50 static struct vm_area_struct *flush_vma; 51 51 static volatile unsigned long flush_va; ··· 415 415 */ 416 416 send_IPI_mask(&cpumask, INVALIDATE_TLB_IPI, 0); 417 417 418 - while (!cpumask_empty((cpumask_t*)&flush_cpumask)) { 418 + while (!cpumask_empty(&flush_cpumask)) { 419 419 /* nothing. lockup detection does not belong here */ 420 420 mb(); 421 421 } ··· 468 468 __flush_tlb_page(va); 469 469 } 470 470 } 471 - cpumask_clear_cpu(cpu_id, (cpumask_t*)&flush_cpumask); 471 + cpumask_clear_cpu(cpu_id, &flush_cpumask); 472 472 } 473 473 474 474 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/