CPUFREQ: ondemand: use power efficient wq!
ARM: 7565/1: sched: stop sched_clock() during suspend

The scheduler imposes a requirement to sched_clock()
which is to stop the clock during suspend, if we don't
do that any RT thread will be rescheduled in the future
which might cause any sort of problems.

This became an issue on OMAP when we converted omap-i2c.c
to use threaded IRQs, it turned out that depending on how
much time we spent on suspend, the I2C IRQ thread would
end up being rescheduled so far in the future that I2C
transfers would timeout and, because omap_hsmmc depends
on an I2C-connected device to detect if an MMC card is
inserted in the slot, our rootfs would just vanish.

arch/arm/kernel/sched_clock.c already had an optional
implementation (sched_clock_needs_suspend()) which would
handle scheduler's requirement properly, what this patch
does is simply to make that implementation non-optional.

Note that this has the side-effect that printk timings
won't reflect the actual time spent on suspend so other
methods to measure that will have to be used.

This has been tested with beagleboard XM (OMAP3630) and
pandaboard rev A3 (OMAP4430). Suspend to RAM is now working
after this patch.

Thanks to Kevin Hilman for helping out with debugging.

Change-Id: Ie2f9e3b22eb3d1f3806cf8c598f22e2fa1b8651f
Acked-by: Kevin Hilman <khilman@ti.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
CRs-Fixed: 497236
Git-commit: 6a4dae5e138a32b45ca5218cc2b81802f9d378c3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Added auto version updater for my synapse script.
led-control: powermode debug
led-control: compensate for uneven color channel scale from userspace
led-control: make white (255/255/255) more realistic
led-control: more changes, and add system notif brightness control

since AOSP ROMs don't use the low power mode, repurpose it to control system notification brightness.
detection is based on the specific color the ROM (RootBox) called for during normal charging events. ymmv.
led-control: recognize more system notifications
led-control: added addends for RGB LEDs / custom white balance controls
led-control: bugfix

bugfix to allow wb-adjustments to apply to neutral colors and not just pure white.
Revert "ARM: 7565/1: sched: stop sched_clock() during suspend"

This reverts commit 222cdd836158a1a3b80fcca4217e65b73639e83c.
Kernel V0.16