aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-04 11:57:08 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-10-11 18:46:18 -0400
commitc50cade95b075e1116fc4fae6a9c63829720efb9 (patch)
tree151b394a305654508fd0ece0d887eb47c5ca897c /arch/mips
parentb5eb551145395382ddf302548991a5fbaabc5341 (diff)
[MIPS] SMP: Kill useless casts.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/smp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index 5ca3809a1b45..54464fd36198 100644
--- a/arch/mips/kernel/smp.c
+++ b/arch/mips/kernel/smp.c
@@ -373,7 +373,7 @@ void flush_tlb_mm(struct mm_struct *mm)
373 preempt_disable(); 373 preempt_disable();
374 374
375 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { 375 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) {
376 smp_on_other_tlbs(flush_tlb_mm_ipi, (void *)mm); 376 smp_on_other_tlbs(flush_tlb_mm_ipi, mm);
377 } else { 377 } else {
378 cpumask_t mask = cpu_online_map; 378 cpumask_t mask = cpu_online_map;
379 unsigned int cpu; 379 unsigned int cpu;
@@ -396,7 +396,7 @@ struct flush_tlb_data {
396 396
397static void flush_tlb_range_ipi(void *info) 397static void flush_tlb_range_ipi(void *info)
398{ 398{
399 struct flush_tlb_data *fd = (struct flush_tlb_data *)info; 399 struct flush_tlb_data *fd = info;
400 400
401 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); 401 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2);
402} 402}
@@ -412,7 +412,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned l
412 fd.vma = vma; 412 fd.vma = vma;
413 fd.addr1 = start; 413 fd.addr1 = start;
414 fd.addr2 = end; 414 fd.addr2 = end;
415 smp_on_other_tlbs(flush_tlb_range_ipi, (void *)&fd); 415 smp_on_other_tlbs(flush_tlb_range_ipi, &fd);
416 } else { 416 } else {
417 cpumask_t mask = cpu_online_map; 417 cpumask_t mask = cpu_online_map;
418 unsigned int cpu; 418 unsigned int cpu;
@@ -428,7 +428,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned l
428 428
429static void flush_tlb_kernel_range_ipi(void *info) 429static void flush_tlb_kernel_range_ipi(void *info)
430{ 430{
431 struct flush_tlb_data *fd = (struct flush_tlb_data *)info; 431 struct flush_tlb_data *fd = info;
432 432
433 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); 433 local_flush_tlb_kernel_range(fd->addr1, fd->addr2);
434} 434}
@@ -439,12 +439,12 @@ void flush_tlb_kernel_range(unsigned long start, unsigned long end)
439 439
440 fd.addr1 = start; 440 fd.addr1 = start;
441 fd.addr2 = end; 441 fd.addr2 = end;
442 on_each_cpu(flush_tlb_kernel_range_ipi, (void *)&fd, 1, 1); 442 on_each_cpu(flush_tlb_kernel_range_ipi, &fd, 1, 1);
443} 443}
444 444
445static void flush_tlb_page_ipi(void *info) 445static void flush_tlb_page_ipi(void *info)
446{ 446{
447 struct flush_tlb_data *fd = (struct flush_tlb_data *)info; 447 struct flush_tlb_data *fd = info;
448 448
449 local_flush_tlb_page(fd->vma, fd->addr1); 449 local_flush_tlb_page(fd->vma, fd->addr1);
450} 450}
@@ -457,7 +457,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
457 457
458 fd.vma = vma; 458 fd.vma = vma;
459 fd.addr1 = page; 459 fd.addr1 = page;
460 smp_on_other_tlbs(flush_tlb_page_ipi, (void *)&fd); 460 smp_on_other_tlbs(flush_tlb_page_ipi, &fd);
461 } else { 461 } else {
462 cpumask_t mask = cpu_online_map; 462 cpumask_t mask = cpu_online_map;
463 unsigned int cpu; 463 unsigned int cpu;