mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 03:20:24 +00:00
Merge pull request #561 from sched-ext/bpfland-fix-energy-profile-refresh
scx_bpfland: prevent reading energy profile if not available
This commit is contained in:
commit
a469f0f1ce
@ -507,7 +507,7 @@ impl<'a> Scheduler<'a> {
|
||||
}
|
||||
|
||||
fn refresh_sched_domain(&mut self) {
|
||||
if self.opts.primary_domain.is_empty() {
|
||||
if self.opts.primary_domain.is_empty() && self.energy_profile != "none" {
|
||||
let energy_profile = Self::read_energy_profile();
|
||||
if energy_profile != self.energy_profile {
|
||||
self.energy_profile = energy_profile.clone();
|
||||
|
Loading…
Reference in New Issue
Block a user