netstar pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=72e59e29de00c7905f0afe33d47b052f3ce41faf

commit 72e59e29de00c7905f0afe33d47b052f3ce41faf
Author: Alastair Poole <nets...@gmail.com>
Date:   Wed Jan 6 00:12:30 2021 +0000

    e_sys_cpufreq: dont send events for fbsd/obsd
    
    On display wake e sys is sending error events to the cpufreq
    module creating a confusing popup. pstate and governor are
    linux-only.
---
 src/bin/system/e_system_cpufreq.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/system/e_system_cpufreq.c 
b/src/bin/system/e_system_cpufreq.c
index e0127ceb7..f2fc4a0d4 100644
--- a/src/bin/system/e_system_cpufreq.c
+++ b/src/bin/system/e_system_cpufreq.c
@@ -152,8 +152,13 @@ void
 e_system_cpufreq_init(void)
 {
    e_system_inout_command_register("cpufreq-freq",     _cb_cpufreq_freq, NULL);
+#if defined __FreeBSD__ || defined __OpenBSD__
+   (void) _cb_cpufreq_governor;
+   (void) _cb_cpufreq_pstate;
+#else
    e_system_inout_command_register("cpufreq-governor", _cb_cpufreq_governor, 
NULL);
    e_system_inout_command_register("cpufreq-pstate",   _cb_cpufreq_pstate, 
NULL);
+#endif
 }
 
 void

-- 


Reply via email to