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.
This commit is contained in:
Alastair Poole 2021-01-06 00:12:30 +00:00
parent 22570795db
commit 72e59e29de
1 changed files with 5 additions and 0 deletions

View File

@ -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