hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/alpha/kernel/smp.c
....@@ -36,8 +36,6 @@
3636
3737 #include <asm/io.h>
3838 #include <asm/irq.h>
39
-#include <asm/pgtable.h>
40
-#include <asm/pgalloc.h>
4139 #include <asm/mmu_context.h>
4240 #include <asm/tlbflush.h>
4341
....@@ -168,7 +166,6 @@
168166 DBGS(("smp_callin: commencing CPU %d current %p active_mm %p\n",
169167 cpuid, current, current->active_mm));
170168
171
- preempt_disable();
172169 cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
173170 }
174171
....@@ -614,8 +611,7 @@
614611 smp_imb(void)
615612 {
616613 /* Must wait other processors to flush their icache before continue. */
617
- if (on_each_cpu(ipi_imb, NULL, 1))
618
- printk(KERN_CRIT "smp_imb: timed out\n");
614
+ on_each_cpu(ipi_imb, NULL, 1);
619615 }
620616 EXPORT_SYMBOL(smp_imb);
621617
....@@ -630,9 +626,7 @@
630626 {
631627 /* Although we don't have any data to pass, we do want to
632628 synchronize with the other processors. */
633
- if (on_each_cpu(ipi_flush_tlb_all, NULL, 1)) {
634
- printk(KERN_CRIT "flush_tlb_all: timed out\n");
635
- }
629
+ on_each_cpu(ipi_flush_tlb_all, NULL, 1);
636630 }
637631
638632 #define asn_locked() (cpu_data[smp_processor_id()].asn_lock)
....@@ -667,9 +661,7 @@
667661 }
668662 }
669663
670
- if (smp_call_function(ipi_flush_tlb_mm, mm, 1)) {
671
- printk(KERN_CRIT "flush_tlb_mm: timed out\n");
672
- }
664
+ smp_call_function(ipi_flush_tlb_mm, mm, 1);
673665
674666 preempt_enable();
675667 }
....@@ -720,9 +712,7 @@
720712 data.mm = mm;
721713 data.addr = addr;
722714
723
- if (smp_call_function(ipi_flush_tlb_page, &data, 1)) {
724
- printk(KERN_CRIT "flush_tlb_page: timed out\n");
725
- }
715
+ smp_call_function(ipi_flush_tlb_page, &data, 1);
726716
727717 preempt_enable();
728718 }
....@@ -747,7 +737,7 @@
747737 }
748738
749739 void
750
-flush_icache_user_range(struct vm_area_struct *vma, struct page *page,
740
+flush_icache_user_page(struct vm_area_struct *vma, struct page *page,
751741 unsigned long addr, int len)
752742 {
753743 struct mm_struct *mm = vma->vm_mm;
....@@ -772,9 +762,7 @@
772762 }
773763 }
774764
775
- if (smp_call_function(ipi_flush_icache_page, mm, 1)) {
776
- printk(KERN_CRIT "flush_icache_page: timed out\n");
777
- }
765
+ smp_call_function(ipi_flush_icache_page, mm, 1);
778766
779767 preempt_enable();
780768 }