Fix scx scheduler reactivation + improve info logging - actual fix it this time
This commit is contained in:
parent
4d2f4b3bc3
commit
40aeafba57
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
2
|
1
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
falcond (1.0.5-101pika1) pika; urgency=low
|
||||||
|
|
||||||
|
* Fix scx scheduler reactivation + improve info logging - actual fix it this time
|
||||||
|
|
||||||
|
-- ferreo <ferreo@pika-os.com> Sun, 12 Jan 2025 13:48:00 +0300
|
||||||
|
|
||||||
falcond (1.0.4-101pika1) pika; urgency=low
|
falcond (1.0.4-101pika1) pika; urgency=low
|
||||||
|
|
||||||
* Fix scx scheduler reactivation + improve info logging
|
* Fix scx scheduler reactivation + improve info logging
|
||||||
|
@ -15,7 +15,7 @@ var previous_mode_buffer: [10]u8 = undefined;
|
|||||||
pub fn applyVCacheMode(vcache_mode: VCacheMode) void {
|
pub fn applyVCacheMode(vcache_mode: VCacheMode) void {
|
||||||
const file = fs.openFileAbsolute(vcache_path, .{ .mode = .read_write }) catch |err| switch (err) {
|
const file = fs.openFileAbsolute(vcache_path, .{ .mode = .read_write }) catch |err| switch (err) {
|
||||||
error.FileNotFound => {
|
error.FileNotFound => {
|
||||||
if (vcache_mode == .none) {
|
if (vcache_mode != .none) {
|
||||||
std.log.info("AMD dual CCD 3D vcache support not detected", .{});
|
std.log.info("AMD dual CCD 3D vcache support not detected", .{});
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -86,7 +86,7 @@ pub const ProfileManager = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vcache_setting.applyVCacheMode(.none);
|
vcache_setting.applyVCacheMode(.none);
|
||||||
try scx_scheds.deactivateScheduler(self.allocator);
|
scx_scheds.restorePreviousState(self.allocator);
|
||||||
self.active_profile = null;
|
self.active_profile = null;
|
||||||
|
|
||||||
if (self.queued_profiles.items.len > 0) {
|
if (self.queued_profiles.items.len > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user