mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-27 12:55:59 -05:00
Merge tag 'pm-5.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fixes from Rafael Wysocki: "Make the intel_pstate driver behave as expected when it operates in the passive mode with HWP enabled and the 'powersave' governor on top of it" * tag 'pm-5.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: cpufreq: intel_pstate: Take CPUFREQ_GOV_STRICT_TARGET into account cpufreq: Add strict_target to struct cpufreq_policy cpufreq: Introduce CPUFREQ_GOV_STRICT_TARGET cpufreq: Introduce governor flags
This commit is contained in:
@@ -109,6 +109,12 @@ struct cpufreq_policy {
|
||||
bool fast_switch_possible;
|
||||
bool fast_switch_enabled;
|
||||
|
||||
/*
|
||||
* Set if the CPUFREQ_GOV_STRICT_TARGET flag is set for the current
|
||||
* governor.
|
||||
*/
|
||||
bool strict_target;
|
||||
|
||||
/*
|
||||
* Preferred average time interval between consecutive invocations of
|
||||
* the driver to set the frequency for this policy. To be set by the
|
||||
@@ -570,12 +576,20 @@ struct cpufreq_governor {
|
||||
char *buf);
|
||||
int (*store_setspeed) (struct cpufreq_policy *policy,
|
||||
unsigned int freq);
|
||||
/* For governors which change frequency dynamically by themselves */
|
||||
bool dynamic_switching;
|
||||
struct list_head governor_list;
|
||||
struct module *owner;
|
||||
u8 flags;
|
||||
};
|
||||
|
||||
/* Governor flags */
|
||||
|
||||
/* For governors which change frequency dynamically by themselves */
|
||||
#define CPUFREQ_GOV_DYNAMIC_SWITCHING BIT(0)
|
||||
|
||||
/* For governors wanting the target frequency to be set exactly */
|
||||
#define CPUFREQ_GOV_STRICT_TARGET BIT(1)
|
||||
|
||||
|
||||
/* Pass a target to the cpufreq driver */
|
||||
unsigned int cpufreq_driver_fast_switch(struct cpufreq_policy *policy,
|
||||
unsigned int target_freq);
|
||||
|
||||
Reference in New Issue
Block a user