]> Git Repo - linux.git/commit
cpufreq: Replace "max_transition_latency" with "dynamic_switching"
authorViresh Kumar <[email protected]>
Wed, 19 Jul 2017 10:12:46 +0000 (15:42 +0530)
committerRafael J. Wysocki <[email protected]>
Tue, 25 Jul 2017 22:15:45 +0000 (00:15 +0200)
commited4676e254630c1f00a4fc8f3821890fff7e3643
tree5cedac1abae32d5bbdde7585bbe915ff036c581c
parent768608a578255c0add26bfdcb720d320eca1556b
cpufreq: Replace "max_transition_latency" with "dynamic_switching"

There is no limitation in the ondemand or conservative governors which
disallow the transition_latency to be greater than 10 ms.

The max_transition_latency field is rather used to disallow automatic
dynamic frequency switching for platforms which didn't wanted these
governors to run.

Replace max_transition_latency with a boolean (dynamic_switching) and
check for transition_latency == CPUFREQ_ETERNAL along with that. This
makes it pretty straight forward to read/understand now.

Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_governor.h
include/linux/cpufreq.h
This page took 0.059387 seconds and 4 git commands to generate.