This patch is against cpufreqd-2.0.0.
It adds a plugin that supports delaying a Rule before
it will actually
delay=7 # This Rule will not be applied until
hit 7 polls.
This required the plugin to be able to prevent a rule
applied. Therefore this patch also changes main.c and
cpufreqd_plugin.h to support this.
The following keyword call-back functions need to
return an int
instead of void:
In 2.0.0 only the following plugins use (one of) these
are patched also to return int from these functions:
The return values from the ..._post_change functions
are ignored, but
the ..._pre_change functions can return non-zero to
prevent the rule or profile from actually take effect.
This patch creates this file:
and changes the following files:
To apply the patch:
patch -p1 < /path/to/add_delay_plugin.patch
To create a new configure script to support the plugin:
# Make sure the (proper versions of) the autotools are
# installed. Then run:
To compile with the plugin:
Need to reinstall to be able to load the added plugin:
su -c "make install"
Comments, suggestions, patches and bug-reports will be