auto-cpufreq: allow integers for frequency
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
e261e2a520
commit
e5c5604448
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ in {
|
||||||
energy_performance_preference = "balance_power";
|
energy_performance_preference = "balance_power";
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
platform_profile = "low-power";
|
platform_profile = "low-power";
|
||||||
scaling_max_freq = mkIf (isFloat cfg.max.battery) (builtins.floor (cfg.max.battery * 1000 * 1000)); # KHz
|
scaling_max_freq = mkIf (isFloat cfg.max.battery || isInt cfg.max.battery) (builtins.floor (cfg.max.battery * 1000 * 1000)); # KHz
|
||||||
#// turbo = "never"; # Only works with acpi-cpufreq
|
#// turbo = "never"; # Only works with acpi-cpufreq
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ in {
|
||||||
energy_performance_preference = "balance_performance";
|
energy_performance_preference = "balance_performance";
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
platform_profile = "balanced";
|
platform_profile = "balanced";
|
||||||
scaling_max_freq = mkIf (isFloat cfg.max.charger) (builtins.floor (cfg.max.charger * 1000 * 1000)); # KHz
|
scaling_max_freq = mkIf (isFloat cfg.max.charger || isInt cfg.max.charger) (builtins.floor (cfg.max.charger * 1000 * 1000)); # KHz
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue