Skip to content

Commit

Permalink
Merge pull request #561 from sched-ext/bpfland-fix-energy-profile-ref…
Browse files Browse the repository at this point in the history
…resh

scx_bpfland: prevent reading energy profile if not available
  • Loading branch information
arighi authored Aug 25, 2024
2 parents ca13e13 + f8acd06 commit a469f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheds/rust/scx_bpfland/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a469f0f

Please sign in to comment.