config_cpu: set ondemand governor only if available
authorMichael Prokop <mika@grml.org>
Thu, 11 Dec 2014 10:29:31 +0000 (11:29 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 11 Dec 2014 10:29:31 +0000 (11:29 +0100)
commit03d4320918d6ce6ac65428380e4d32ad04987f80
tree61e9cf4b7bbf20e54cf5c4f5f892dab0449b1e04
parent823f976fa1a7890aca936a18fd00a96a89f431a1
config_cpu: set ondemand governor only if available

Nowadays we enable and use the ondemand governor by default in
our kernel configuration. More recent systems providing Intel
Haswell CPUs (e.g. the i7-3520M CPU as present in the Lenovo X230
laptops as well as the CPU present in IBM flex chassis) use
pstates/intel_pstate and disable the ondemand governor at all, so
only performance and powersave are available (unless you set
intel_pstate=disable at boot time).

Also see https://plus.google.com/+TheodoreTso/posts/2vEekAsG2QT
Thanks to Yves-Alexis Perez for the pointer.
autoconfig.functions