Enable proprietary charger detection (e.g. iPhone/iPad charger) and treat it as AC power source.
Remove unnecessary input current limitation in fast charge.
The fast charge patch changes SDP input current to 1500mA. Then it was limited to 1200mA here.
Additionally, this limits CDP and DCP (AC charger) input current to 1200mA in fast charge mode, where with it disabled it defaults to 1500mA with option to go up to 2000mA for high power AC adapters.
Merge branch 'charger_detect' of https://github.com/rondoval/hammerhead into nightlies
cpufreq: interactive: Honor changed minimum frequency

This saves a few cycles in the timer routine.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpufreq: interactive: Use parts of native boost routine

Not all governors are created equal. Set boostpulse_endtime
and floor_freq to smoothen the timer routine.

[franciscofranco] removed boostpulse_endtime from the
original commit because I'm not using it.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpufreq: interactive: Use frequency dependent per cpu timings

This allows in-depth testing of the timer routine.

[franciscofranco] made some structural changes to compile on top
of my governor changes. Functionality was not changed.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpufreq: interactive: Honor boosted state when entering idle

The old logic didn't take the boosted state in account. Just
leave the comment intact because our temporary min is not
the regular policy->min it refers to.

[franciscofranco] not using boostpulse_endtime so change it something
else.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Merge remote-tracking branch 'upstream/nightlies' into sm-4.4