]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/64: Remove PPC64 special case for cputime accounting default
authorNicholas Piggin <npiggin@gmail.com>
Fri, 2 Sep 2022 08:53:15 +0000 (18:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 04:14:27 +0000 (14:14 +1000)
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
arch/powerpc/configs/ppc64_defconfig
arch/powerpc/configs/pseries_defconfig
init/Kconfig

index c8b0e80d613bf2c97bf5b6d8ccadcea1d4cf377b..6be0c43397b45dd9f3e9d357807e7a94f38c28a1 100644 (file)
@@ -1,7 +1,9 @@
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
+# CONFIG_CONTEXT_TRACKING_USER_FORCE is not set
 CONFIG_NO_HZ=y
 CONFIG_HIGH_RES_TIMERS=y
+CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
 CONFIG_TASKSTATS=y
 CONFIG_TASK_DELAY_ACCT=y
 CONFIG_IKCONFIG=y
index c05e37af9f1e831f7259b6b821a75f5797cd9f2f..117643d20281ff70dcadc7c3eba0b5455fc206b0 100644 (file)
@@ -3,8 +3,10 @@ CONFIG_NR_CPUS=2048
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 CONFIG_AUDIT=y
+# CONFIG_CONTEXT_TRACKING_USER_FORCE is not set
 CONFIG_NO_HZ=y
 CONFIG_HIGH_RES_TIMERS=y
+CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
 CONFIG_TASKSTATS=y
 CONFIG_TASK_DELAY_ACCT=y
 CONFIG_TASK_XACCT=y
index 532362fcfe31fd3c58b418ad54f9d42080b1a00e..94ce5a46a8023dbadf792ee0cca78ee26e387470 100644 (file)
@@ -461,8 +461,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