答复: [PATCH] x86: move turbo_disabled() out of intel_set_max_freq_ratio

2020-04-29 Thread Li,Rongqing
> Hello, > > the problem is that turbo can be enabled/disabled by the firmware at runtime, > after the machine has booted. > > This happens for example with the Dell XPS 13, where turbo gets disabled by > the firmware if the machine is disconnected from AC power and runs on battery. > The laptop

Re: [PATCH] x86: move turbo_disabled() out of intel_set_max_freq_ratio

2020-04-29 Thread Giovanni Gherdovich
On Wed, 2020-04-29 at 09:50 +0800, Li RongQing wrote: > move the turbo_disabled before intel_set_max_freq_ratio, > when turbo is disabled, the max frequency ratio is a const > value, it is unnecessary to read MSR_TURBO_RATIO* msr to > compute > > Signed-off-by: Li RongQing > --- > arch/x86/kerne

[PATCH] x86: move turbo_disabled() out of intel_set_max_freq_ratio

2020-04-28 Thread Li RongQing
move the turbo_disabled before intel_set_max_freq_ratio, when turbo is disabled, the max frequency ratio is a const value, it is unnecessary to read MSR_TURBO_RATIO* msr to compute Signed-off-by: Li RongQing --- arch/x86/kernel/smpboot.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)