lkml.org 
[lkml]   [2022]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/1] cpufreq: Fix show()/store() issue for hotplugging
Date
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

\
 
 \ /
  Last update: 2022-10-19 10:47    [W:0.043 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site