]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpupower: revise is_valid flag handling for idle_monitor
authorwangfushuai <wangfushuai@baidu.com>
Wed, 4 Dec 2024 07:02:47 +0000 (15:02 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 10 Dec 2024 00:52:03 +0000 (17:52 -0700)
commit46fd8c707b552c0a846917192f66e623bb03f976
treebdb98b8d316e94bf21c385ca6ff8211af3a1b2d7
parent3075476a7af666de3ec10b4f35d8e62db8fd5b6d
cpupower: revise is_valid flag handling for idle_monitor

The is_valid flag should reflect the validity state of both
the XXX_start and XXX_stop functions. But the use of '=' in
XXX_stop overwrites the validity state set by XXX_start. This
commit changes '=' to '|=' in XXX_stop to preserve and combine
the validity state of XXX_start and XXX_stop.

Signed-off-by: wangfushuai <wangfushuai@baidu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
tools/power/cpupower/utils/idle_monitor/snb_idle.c