acpuclock-8226: Revert moto change Allow speedbin2 max 1401600

This is the qualcomm default for that speedbin

Change-Id: I61b4fc8ce18a194e54bac1411cdabec228e30dcf
ARM: dts: msm: use ordered workqueue only when specified

Use alloc_ordered_workqueue function to queue work only
when specified from the dtsi node for the corresponding led.

Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>
slimbus: overclock root freq

Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>
Slimbus: Increase clock gear from 7 to 10 This means SLIMbus will use its maximum potential to give the best audio quality for the hardware.

Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>
LCD_KCAL: Introduce configurable kcal_min

Lower values such as 0-10 ultimately create a dark, washed out display, if a user accidently sets their kcal values to "0 0 0" they will loose visual control of the device, potentially requiring a hard reboot.
Introduce minimum kcal values to prevent this behavior.

Willing users can disable this protection by setting the kcal_min value to '0', however the default value of 35 is recommended.

sysfs:
echo "1/255" > /sys/devices/platform/kcal_ctrl.0/kcal_min

kcal_min will detect and block values attempting to set lower than itself, resetting the specific values to that of kcal_min. There is also behavior to adjust the kcal if kcal_min is set to a level higher than that of any kcal value(s).

Conflicts:
	arch/arm/mach-msm/board-htc-8974.c
LCD_KCAL: Prevent out-of-range input values
sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire

These values are applicable for 100 HZ device.
Check http://ripke.com/loadavg/moire for more details.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
hotplug: rename it and set proper config

Just for the looks, the internal name is still the same
to be compatible with the sysfs entries.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>

Conflicts:
	arch/arm/kernel/aero_hotplug.c
hotplug: refactor low_latency mode

The low_latency tunable should exactly whats it supposed
to do; on-/offlining cpus in a fast manner.
Hence lowering the requirements for it so it can work
not only on max-frequency.

Also doing some cleanup and telling the compiler to inline
properly.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
hotplug: add a up_frequency tunable

One of the main design goals of this driver was to provide
a generic approach of hotplugging. It turned out that powerful
cpus are unlikely to go all the way up to their max frequency
when under load.
This might be dua a wrongly configured cpu governor or just
because the device is too fast.
Adding a up_frequency tunable provides a simple a way to define
the frequency when the hotplug driver should care to online cpus.

By default, this is the max frequency reported by the cpu policy,
but can be changed to anything else.
One nice side-effect is that we only get the actual policy ones
instead of each sampling rate.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
hotplug: rewrite sysfs entries

Since they all do the exact same thing, we can save
some lines and add a predefined macro for this.

Random cleanups are also included!

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Reclaim RAM from loggers
CPU Underclocking

Conflicts:
	arch/arm/mach-msm/Kconfig
vfp: hardfloat

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	arch/arm/vfp/Makefile
powersuspend: new PM kernel driver for Android w/o early_suspend

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

Signed-off-by: Paul Reioux <reioux@gmail.com>

powersuspend: fix logci derps :p

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	kernel/power/Kconfig
kernel/power/powersuspend: remove userspace dependency from powersuspend

make powersuspend not depend on a userspace initiator anymore, but use a hook
in autosleep instead.

Signed-off-by: Paul Reioux <reioux@gmail.com>
kernel/power/powersuspend: add back userpace control w/ default kernel control

make kernel / userspace mode switchable

Signed-off-by: Paul Reioux <reioux@gmail.com>
kernel/power/powersuspend: default to userspace for now

Signed-off-by: Paul Reioux <reioux@gmail.com>
kernel/power/powersuspend: LCD screen on/off hooks (Yank555.lu)

- add an alternative hook for screen on / off detection in the display
  pannel driver
- sleeps  ~0.1s sooner, wakes up ~1s later then autosleep
- clean up source formatting a bit (Paul Reioux)

Signed-off-by: Paul Reioux <reioux@gmail.com>
mdss_dsi_panel.c: add powersuspend hooks

Signed-off-by: Paul Reioux <reioux@gmail.com>