Re: [PATCHv3 2/2] powerpc: implement arch_scale_smt_power for Power7

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Thursday, January 28, 2010 - 6:23 pm

On Thu, 2010-01-28 at 17:24 -0600, Joel Schopp wrote:

Almost there :-) Joel, Peter, can you help me figure something out tho ?

On machine that don't have SMT, I would like to avoid calling
arch_scale_smt_power() at all if possible (in addition to not compiling
it in if SMT is not enabled in .config).

Now, I must say I'm utterly confused by how the domains are setup and I
haven't quite managed to sort it out... it looks to me that
SD_SHARE_CPUPOWER is always going to be set on all CPUs when the config
option is set (though each CPU will have its own domain) or am I
misguided ? IE. Is there any sense in having at least a fast exit path
out of arch_scale_smt_power() for non-SMT CPUs ?

Joel, can you look at compiling it out when SMT is not set ? We don't
want to bloat SMP kernels for 32-bit non-SMT embedded platforms.

Oh, and one minor nit:


 ^^^ Please add the /* CONFIG_CPU_HOTPLUG */ (or whatever it is) that's
missing after that #endif :-)

Cheers,
Ben.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] sched: arch_scale_smt_powers, Joel Schopp, (Wed Jan 20, 1:00 pm)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Benjamin Herrenschmidt, (Wed Jan 20, 2:33 pm)
[tip:sched/core] sched: Fix the place where group powers a ..., tip-bot for Gautham ..., (Thu Jan 21, 6:54 am)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Benjamin Herrenschmidt, (Sat Jan 23, 8:00 pm)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Benjamin Herrenschmidt, (Mon Jan 25, 9:23 pm)
[PATCHv2 0/2] sched: arch_scale_smt_powers v2, Joel Schopp, (Tue Jan 26, 4:27 pm)
[PATCHv2 1/2] sched: enable ARCH_POWER, Joel Schopp, (Tue Jan 26, 4:28 pm)
Re: [PATCHv2 2/2] powerpc: implement arch_scale_smt_power ..., Benjamin Herrenschmidt, (Tue Jan 26, 5:52 pm)
[PATCHv3 0/2] sched: arch_scale_smt_powers, Joel Schopp, (Thu Jan 28, 4:20 pm)
[PATCHv3 1/2] sched: enable ARCH_POWER, Joel Schopp, (Thu Jan 28, 4:20 pm)
Re: [PATCHv3 2/2] powerpc: implement arch_scale_smt_power ..., Benjamin Herrenschmidt, (Thu Jan 28, 6:23 pm)
Re: [PATCHv2 2/2] powerpc: implement arch_scale_smt_power ..., Benjamin Herrenschmidt, (Thu Jan 28, 6:23 pm)
[PATCHv4 0/2] sched: arch_scale_smt_powers, Joel Schopp, (Fri Feb 5, 1:57 pm)
[PATCHv4 1/2] sched: enable ARCH_POWER, Joel Schopp, (Fri Feb 5, 1:57 pm)
Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power ..., Michael Neuling, (Thu Feb 18, 11:05 pm)
Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power ..., Michael Neuling, (Mon Feb 22, 11:08 pm)
Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power ..., Michael Neuling, (Tue Feb 23, 11:07 pm)