[PATCH] powerpc/64: don't select ARCH_HAS_SCALED_CPUTIME on book3E

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2568d LANDED

Landed in mainline as b4645ffc49cf on 2019-08-27.

2 messages, 2 authors, 2019-08-28 · open the first message on its own page

[PATCH] powerpc/64: don't select ARCH_HAS_SCALED_CPUTIME on book3E

From: Christophe Leroy <hidden>
Date: 2019-08-22 16:44:11

Book3E doesn't have SPRN_SPURR/SPRN_PURR.

Activating ARCH_HAS_SCALED_CPUTIME is just wasting CPU time.

Signed-off-by: Christophe Leroy <redacted>
Link: https://github.com/linuxppc/issues/issues/171
---
 arch/powerpc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 0c322abb1495..6137f5e3bb2d 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -132,7 +132,7 @@ config PPC
 	select ARCH_HAS_PTE_DEVMAP		if PPC_BOOK3S_64
 	select ARCH_HAS_PTE_SPECIAL
 	select ARCH_HAS_MEMBARRIER_CALLBACKS
-	select ARCH_HAS_SCALED_CPUTIME		if VIRT_CPU_ACCOUNTING_NATIVE && PPC64
+	select ARCH_HAS_SCALED_CPUTIME		if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64
 	select ARCH_HAS_STRICT_KERNEL_RWX	if ((PPC_BOOK3S_64 || PPC32) && !RELOCATABLE && !HIBERNATION)
 	select ARCH_HAS_TICK_BROADCAST		if GENERIC_CLOCKEVENTS_BROADCAST
 	select ARCH_HAS_UACCESS_FLUSHCACHE
-- 
2.13.3

Re: [PATCH] powerpc/64: don't select ARCH_HAS_SCALED_CPUTIME on book3E

From: Michael Ellerman <hidden>
Date: 2019-08-28 04:25:00

On Thu, 2019-08-22 at 16:44:05 UTC, Christophe Leroy wrote:
Book3E doesn't have SPRN_SPURR/SPRN_PURR.

Activating ARCH_HAS_SCALED_CPUTIME is just wasting CPU time.

Signed-off-by: Christophe Leroy <redacted>
Link: https://github.com/linuxppc/issues/issues/171
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/b4645ffc49cfe34f67feda20c34bd7a859c78312

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help