Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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. Remove the special
case and make the ppc64 and pseries defconfigs use GEN accounting
(others will use TICK, as-per Kconfig defaults).

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.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220902085316.2071519-4-npiggin@gmail.com

authored by

Nicholas Piggin and committed by
Michael Ellerman
02382aff 0e8a6313

+5 -2
+2
arch/powerpc/configs/ppc64_defconfig
··· 1 1 CONFIG_SYSVIPC=y 2 2 CONFIG_POSIX_MQUEUE=y 3 + # CONFIG_CONTEXT_TRACKING_USER_FORCE is not set 3 4 CONFIG_NO_HZ=y 4 5 CONFIG_HIGH_RES_TIMERS=y 6 + CONFIG_VIRT_CPU_ACCOUNTING_GEN=y 5 7 CONFIG_TASKSTATS=y 6 8 CONFIG_TASK_DELAY_ACCT=y 7 9 CONFIG_IKCONFIG=y
+2
arch/powerpc/configs/pseries_defconfig
··· 3 3 CONFIG_SYSVIPC=y 4 4 CONFIG_POSIX_MQUEUE=y 5 5 CONFIG_AUDIT=y 6 + # CONFIG_CONTEXT_TRACKING_USER_FORCE is not set 6 7 CONFIG_NO_HZ=y 7 8 CONFIG_HIGH_RES_TIMERS=y 9 + CONFIG_VIRT_CPU_ACCOUNTING_GEN=y 8 10 CONFIG_TASKSTATS=y 9 11 CONFIG_TASK_DELAY_ACCT=y 10 12 CONFIG_TASK_XACCT=y
+1 -2
init/Kconfig
··· 461 461 462 462 choice 463 463 prompt "Cputime accounting" 464 - default TICK_CPU_ACCOUNTING if !PPC64 465 - default VIRT_CPU_ACCOUNTING_NATIVE if PPC64 464 + default TICK_CPU_ACCOUNTING 466 465 467 466 # Kind of a stub config for the pure tick based cputime accounting 468 467 config TICK_CPU_ACCOUNTING