Skip to contentSkip to conversation

powerpc/64: Remove PPC64 special case for cputime accounting default

PATCH New Nicholas Piggin 1 participant 1 message May 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/64: Remove PPC64 special case for cputime accounting default

Distro kernels tend to be moving to VIRT_CPU_ACCOUNTING_GEN, and there is not much reason why PPC64 should be special here.

VIRT_CPU_ACCOUNTING_NATIVE does provide scaled vtime and stolen time apportioned between system and user time, and vtime accounting is not unconditionally enabled, and possibly other things. But it would be better at this point to extend GEN to cover important missing features rather than directing users back to a less used option.

---
After implementing stolen time for GEN for powerpc, can we try this and see who screams?

Thanks,
Nick

 init/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
init/Kconfig +1 -2
index ddcbefe535e9..544ed8b0707a 100644
@@ -473,8 +473,7 @@ config VIRT_CPU_ACCOUNTING
 
 choice
 	prompt "Cputime accounting"
-	default TICK_CPU_ACCOUNTING if !PPC64
-	default VIRT_CPU_ACCOUNTING_NATIVE if PPC64
+	default TICK_CPU_ACCOUNTING
 
 # Kind of a stub config for the pure tick based cputime accounting
 config TICK_CPU_ACCOUNTING
Signature · 1 line
2.35.1