From 36a2c40295bcdc1b932d6eb51b071c40dc79e646 Mon Sep 17 00:00:00 2001 From: chenhongtao Date: Thu, 14 Sep 2023 11:54:14 +0800 Subject: [PATCH] chore: go back to fsnotiyold Log: --- system/power1/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/power1/manager.go b/system/power1/manager.go index cfc3af2f9..95ccf4793 100644 --- a/system/power1/manager.go +++ b/system/power1/manager.go @@ -229,7 +229,7 @@ func (m *Manager) initFsWatcher() { for { select { case event, ok := <-watcher.Events: - if !ok || !event.Has(fsnotify.Write) { + if !ok || event.Op&fsnotify.Write != fsnotify.Write { continue } if (m.hasPstate && strings.HasSuffix(event.Name, "energy_performance_preference")) || strings.HasSuffix(event.Name, "scaling_governor") {