diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/smp.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/smp.c | 14 | ||||
-rw-r--r-- | arch/powerpc/kernel/traps.c | 15 | ||||
-rw-r--r-- | arch/powerpc/mm/slice.c | 29 | ||||
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | 11 |
5 files changed, 0 insertions, 70 deletions
diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h index 5a6614a7f0b2..d607df5081a7 100644 --- a/arch/powerpc/include/asm/smp.h +++ b/arch/powerpc/include/asm/smp.h | |||
@@ -64,7 +64,6 @@ DECLARE_PER_CPU(unsigned int, cpu_pvr); | |||
64 | extern void migrate_irqs(void); | 64 | extern void migrate_irqs(void); |
65 | int generic_cpu_disable(void); | 65 | int generic_cpu_disable(void); |
66 | void generic_cpu_die(unsigned int cpu); | 66 | void generic_cpu_die(unsigned int cpu); |
67 | void generic_mach_cpu_die(void); | ||
68 | void generic_set_cpu_dead(unsigned int cpu); | 67 | void generic_set_cpu_dead(unsigned int cpu); |
69 | void generic_set_cpu_up(unsigned int cpu); | 68 | void generic_set_cpu_up(unsigned int cpu); |
70 | int generic_check_cpu_restart(unsigned int cpu); | 69 | int generic_check_cpu_restart(unsigned int cpu); |
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 8ec017cb4446..1cc4bdce19f3 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -434,20 +434,6 @@ void generic_cpu_die(unsigned int cpu) | |||
434 | printk(KERN_ERR "CPU%d didn't die...\n", cpu); | 434 | printk(KERN_ERR "CPU%d didn't die...\n", cpu); |
435 | } | 435 | } |
436 | 436 | ||
437 | void generic_mach_cpu_die(void) | ||
438 | { | ||
439 | unsigned int cpu; | ||
440 | |||
441 | local_irq_disable(); | ||
442 | idle_task_exit(); | ||
443 | cpu = smp_processor_id(); | ||
444 | printk(KERN_DEBUG "CPU%d offline\n", cpu); | ||
445 | __this_cpu_write(cpu_state, CPU_DEAD); | ||
446 | smp_wmb(); | ||
447 | while (__this_cpu_read(cpu_state) != CPU_UP_PREPARE) | ||
448 | cpu_relax(); | ||
449 | } | ||
450 | |||
451 | void generic_set_cpu_dead(unsigned int cpu) | 437 | void generic_set_cpu_dead(unsigned int cpu) |
452 | { | 438 | { |
453 | per_cpu(cpu_state, cpu) = CPU_DEAD; | 439 | per_cpu(cpu_state, cpu) = CPU_DEAD; |
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index e6595b72269b..19e4744b6eba 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c | |||
@@ -1707,21 +1707,6 @@ void altivec_assist_exception(struct pt_regs *regs) | |||
1707 | } | 1707 | } |
1708 | #endif /* CONFIG_ALTIVEC */ | 1708 | #endif /* CONFIG_ALTIVEC */ |
1709 | 1709 | ||
1710 | #ifdef CONFIG_VSX | ||
1711 | void vsx_assist_exception(struct pt_regs *regs) | ||
1712 | { | ||
1713 | if (!user_mode(regs)) { | ||
1714 | printk(KERN_EMERG "VSX assist exception in kernel mode" | ||
1715 | " at %lx\n", regs->nip); | ||
1716 | die("Kernel VSX assist exception", regs, SIGILL); | ||
1717 | } | ||
1718 | |||
1719 | flush_vsx_to_thread(current); | ||
1720 | printk(KERN_INFO "VSX assist not supported at %lx\n", regs->nip); | ||
1721 | _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); | ||
1722 | } | ||
1723 | #endif /* CONFIG_VSX */ | ||
1724 | |||
1725 | #ifdef CONFIG_FSL_BOOKE | 1710 | #ifdef CONFIG_FSL_BOOKE |
1726 | void CacheLockingException(struct pt_regs *regs, unsigned long address, | 1711 | void CacheLockingException(struct pt_regs *regs, unsigned long address, |
1727 | unsigned long error_code) | 1712 | unsigned long error_code) |
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index ded0ea1afde4..0f432a702870 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c | |||
@@ -645,35 +645,6 @@ void slice_set_user_psize(struct mm_struct *mm, unsigned int psize) | |||
645 | spin_unlock_irqrestore(&slice_convert_lock, flags); | 645 | spin_unlock_irqrestore(&slice_convert_lock, flags); |
646 | } | 646 | } |
647 | 647 | ||
648 | void slice_set_psize(struct mm_struct *mm, unsigned long address, | ||
649 | unsigned int psize) | ||
650 | { | ||
651 | unsigned char *hpsizes; | ||
652 | unsigned long i, flags; | ||
653 | u64 *lpsizes; | ||
654 | |||
655 | spin_lock_irqsave(&slice_convert_lock, flags); | ||
656 | if (address < SLICE_LOW_TOP) { | ||
657 | i = GET_LOW_SLICE_INDEX(address); | ||
658 | lpsizes = &mm->context.low_slices_psize; | ||
659 | *lpsizes = (*lpsizes & ~(0xful << (i * 4))) | | ||
660 | ((unsigned long) psize << (i * 4)); | ||
661 | } else { | ||
662 | int index, mask_index; | ||
663 | i = GET_HIGH_SLICE_INDEX(address); | ||
664 | hpsizes = mm->context.high_slices_psize; | ||
665 | mask_index = i & 0x1; | ||
666 | index = i >> 1; | ||
667 | hpsizes[index] = (hpsizes[index] & | ||
668 | ~(0xf << (mask_index * 4))) | | ||
669 | (((unsigned long)psize) << (mask_index * 4)); | ||
670 | } | ||
671 | |||
672 | spin_unlock_irqrestore(&slice_convert_lock, flags); | ||
673 | |||
674 | copro_flush_all_slbs(mm); | ||
675 | } | ||
676 | |||
677 | void slice_set_range_psize(struct mm_struct *mm, unsigned long start, | 648 | void slice_set_range_psize(struct mm_struct *mm, unsigned long start, |
678 | unsigned long len, unsigned int psize) | 649 | unsigned long len, unsigned int psize) |
679 | { | 650 | { |
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index beeaf4a173e1..df4ad95f183e 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | |||
@@ -156,17 +156,6 @@ void mpc7448_hpc2_restart(char *cmd) | |||
156 | for (;;) ; /* Spin until reset happens */ | 156 | for (;;) ; /* Spin until reset happens */ |
157 | } | 157 | } |
158 | 158 | ||
159 | void mpc7448_hpc2_power_off(void) | ||
160 | { | ||
161 | local_irq_disable(); | ||
162 | for (;;) ; /* No way to shut power off with software */ | ||
163 | } | ||
164 | |||
165 | void mpc7448_hpc2_halt(void) | ||
166 | { | ||
167 | mpc7448_hpc2_power_off(); | ||
168 | } | ||
169 | |||
170 | /* | 159 | /* |
171 | * Called very early, device-tree isn't unflattened | 160 | * Called very early, device-tree isn't unflattened |
172 | */ | 161 | */ |