devfreq: Backport features from 3.10

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>