linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] cpufreq: Fix show()/store() issue for hotplugging
@ 2022-10-19  8:40 'Guanjun'
  2022-10-19  8:40 ` [PATCH 1/1] cpufreq: Fix show()/store() issue for hotplugging offline CPU 'Guanjun'
  0 siblings, 1 reply; 4+ messages in thread
From: 'Guanjun' @ 2022-10-19  8:40 UTC (permalink / raw)
  To: schspa, rafael, viresh.kumar; +Cc: linux-pm, linux-kernel, guanjun, zelin.deng

From: Zelin Deng <zelin.deng@linux.alibaba.com>

Hello maintainers,

After I brought one CPU (64) offline, I got failure when I used lscpu:
lscpu: cannot read /sys/devices/system/cpu/cpu64/cpufreq/cpuinfo_max_freq: Device or resource busy

I found in commit d4627a287e251, policy_is_inactive() check was added to
avoid the case in which policy initialization failed. However it didn't
consider the situation in which policy has been created successfully but
is not inactive: CPU is hotplugging offline.

This patch just add an addtional check whether CPU is online or not to
fix the issue.

Zelin Deng (1):
  cpufreq: Fix show()/store() issue for hotplugging offline CPU

 drivers/cpufreq/cpufreq.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

-- 
2.32.0.GIT


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-21  6:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19  8:40 [PATCH 0/1] cpufreq: Fix show()/store() issue for hotplugging 'Guanjun'
2022-10-19  8:40 ` [PATCH 1/1] cpufreq: Fix show()/store() issue for hotplugging offline CPU 'Guanjun'
2022-10-19 11:47   ` Rafael J. Wysocki
2022-10-21  6:11     ` guanjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).