aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/powernv/idle.c')
-rw-r--r--arch/powerpc/platforms/powernv/idle.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c
index 1c5d0675b43c..12f13acee1f6 100644
--- a/arch/powerpc/platforms/powernv/idle.c
+++ b/arch/powerpc/platforms/powernv/idle.c
@@ -177,11 +177,6 @@ static void pnv_alloc_idle_core_states(void)
177 paca_ptrs[cpu]->core_idle_state_ptr = core_idle_state; 177 paca_ptrs[cpu]->core_idle_state_ptr = core_idle_state;
178 paca_ptrs[cpu]->thread_idle_state = PNV_THREAD_RUNNING; 178 paca_ptrs[cpu]->thread_idle_state = PNV_THREAD_RUNNING;
179 paca_ptrs[cpu]->thread_mask = 1 << j; 179 paca_ptrs[cpu]->thread_mask = 1 << j;
180 if (!cpu_has_feature(CPU_FTR_POWER9_DD1))
181 continue;
182 paca_ptrs[cpu]->thread_sibling_pacas =
183 kmalloc_node(paca_ptr_array_size,
184 GFP_KERNEL, node);
185 } 180 }
186 } 181 }
187 182
@@ -805,29 +800,6 @@ static int __init pnv_init_idle_states(void)
805 800
806 pnv_alloc_idle_core_states(); 801 pnv_alloc_idle_core_states();
807 802
808 /*
809 * For each CPU, record its PACA address in each of it's
810 * sibling thread's PACA at the slot corresponding to this
811 * CPU's index in the core.
812 */
813 if (cpu_has_feature(CPU_FTR_POWER9_DD1)) {
814 int cpu;
815
816 pr_info("powernv: idle: Saving PACA pointers of all CPUs in their thread sibling PACA\n");
817 for_each_present_cpu(cpu) {
818 int base_cpu = cpu_first_thread_sibling(cpu);
819 int idx = cpu_thread_in_core(cpu);
820 int i;
821
822 for (i = 0; i < threads_per_core; i++) {
823 int j = base_cpu + i;
824
825 paca_ptrs[j]->thread_sibling_pacas[idx] =
826 paca_ptrs[cpu];
827 }
828 }
829 }
830
831 if (supported_cpuidle_states & OPAL_PM_NAP_ENABLED) 803 if (supported_cpuidle_states & OPAL_PM_NAP_ENABLED)
832 ppc_md.power_save = power7_idle; 804 ppc_md.power_save = power7_idle;
833 805