aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r--arch/powerpc/kernel/setup_32.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 81909600013a..947f904688b0 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -59,7 +59,6 @@ unsigned long ISA_DMA_THRESHOLD;
59unsigned int DMA_MODE_READ; 59unsigned int DMA_MODE_READ;
60unsigned int DMA_MODE_WRITE; 60unsigned int DMA_MODE_WRITE;
61 61
62EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
63EXPORT_SYMBOL(DMA_MODE_READ); 62EXPORT_SYMBOL(DMA_MODE_READ);
64EXPORT_SYMBOL(DMA_MODE_WRITE); 63EXPORT_SYMBOL(DMA_MODE_WRITE);
65 64
@@ -101,8 +100,7 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)
101 */ 100 */
102notrace void __init machine_init(u64 dt_ptr) 101notrace void __init machine_init(u64 dt_ptr)
103{ 102{
104 unsigned int *addr = (unsigned int *)((unsigned long)&patch__memset_nocache + 103 unsigned int *addr = (unsigned int *)patch_site_addr(&patch__memset_nocache);
105 patch__memset_nocache);
106 unsigned long insn; 104 unsigned long insn;
107 105
108 /* Configure static keys first, now that we're relocated. */ 106 /* Configure static keys first, now that we're relocated. */
@@ -240,7 +238,7 @@ void __init exc_lvl_early_init(void)
240 238
241void __init setup_power_save(void) 239void __init setup_power_save(void)
242{ 240{
243#ifdef CONFIG_6xx 241#ifdef CONFIG_PPC_BOOK3S_32
244 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || 242 if (cpu_has_feature(CPU_FTR_CAN_DOZE) ||
245 cpu_has_feature(CPU_FTR_CAN_NAP)) 243 cpu_has_feature(CPU_FTR_CAN_NAP))
246 ppc_md.power_save = ppc6xx_idle; 244 ppc_md.power_save = ppc6xx_idle;