cpufreq: INTELLIDEMAND: Dust off and clean!

* Remove input-boost since it conflicts with cpu-boost.
* Reformat entire code.
* Add policy checks to prevent null dereference.

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

Dorimanx note:
I didnt sync some of the changes as i have mods to this code.