Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions falcond/src/daemon.zig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub const Daemon = struct {
errdefer config.deinit();

const power_profiles = try PowerProfiles.init(allocator, config);
errdefer if (power_profiles) |pp| pp.deinit();
var performance_mode = false;

if (power_profiles) |pp| {
Expand All @@ -45,12 +46,14 @@ pub const Daemon = struct {
}

var profile_manager = ProfileManager.init(allocator, power_profiles, config);
errdefer profile_manager.deinit(allocator);
try ProfileLoader.loadProfiles(allocator, &profile_manager.profiles, &profile_manager.proton_profile, oneshot, config.profile_mode);

const current_time = std.time.nanoTimestamp();
try scx_scheds.init(allocator);

const self = try allocator.create(Self);
errdefer allocator.destroy(self);
self.* = .{
.allocator = allocator,
.config_path = config_path_owned,
Expand Down