Skip to content

Commit d6f7fe3

Browse files
nathanlynchmpe
authored andcommitted
powerpc/pseries: drop RTAS-based timebase synchronization
The pseries platform has been LPAR-only for several generations, and the PAPR spec: * Guarantees that timebase synchronization is performed by the platform ("The timebase registers are synchronized by the platform before CPUs are given to the OS" - 7.3.8 SMP Support). * Completely omits the RTAS freeze-time-base and thaw-time-base RTAS functions, which are CHRP artifacts. This code is effectively unused on currently supported models, so drop it. Signed-off-by: Nathan Lynch <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 836b5b9 commit d6f7fe3

File tree

1 file changed

+0
-6
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+0
-6
lines changed

arch/powerpc/platforms/pseries/smp.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,5 @@ void __init smp_init_pseries(void)
278278
cpumask_clear_cpu(boot_cpuid, of_spin_mask);
279279
}
280280

281-
/* Non-lpar has additional take/give timebase */
282-
if (rtas_token("freeze-time-base") != RTAS_UNKNOWN_SERVICE) {
283-
smp_ops->give_timebase = rtas_give_timebase;
284-
smp_ops->take_timebase = rtas_take_timebase;
285-
}
286-
287281
pr_debug(" <- smp_init_pSeries()\n");
288282
}

0 commit comments

Comments
 (0)