Update gitignore
wakelock: use single threaded workqueueus

Avoid the concurrency management that could delay execution if there's
lots of workqueue traffic (and allow the runqueue to run on any CPU).

Lots of workqueue traffic can be generated by setting
ondemand/sampling_rate to 10000.

Change-Id: I55b8a223f4a389b93d49eef0d809eb1efe1790ba

Signed-off-by: Andrea Arcangeli <andrea@cpushare.com>
init: apply SCHED_FIFO to kthreadd

Hotplug (cpu_up) latency currently suffers because the system
must wait for kthreadd to spawn certain kthreads (such as the
migration and workqueue kthreads) and for them to run for
the first time. Setting SCHED_FIFO will cause kthreadd to run
immediately. The newly created kthreads will inherit the scheduler
policy and run immediately also.

The scheduling policy of newly created kthreads is already set
back to SCHED_NORMAL in kthread_create_on_node, so nothing needs
to be done to restore normal scheduling behavior for the kthreads
once spawned.

Change-Id: I236ceb29845cf58ea1ea886fc3210ccaab2dd792
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
drivers: fix compile error from gcc 4.7

This fixes the following error which pops out when using gcc 4.7

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
Fix camera on ZKF107 firmware

Change-Id: I5e81c3b4ebb96248a239f0d028ec4252e311f77f
ARM: disable preemption in machine_shutdown

Since the smp call to stop the other cpus are handled in those
cpus in interrupt context, there's a potential for those smp
handlers to interrupt threads holding spin locks (such as the
one a mutex holds).  This prevents those threads from ever
releasing their spin lock, so if the cpu doing the shutdown
is allowed to switch to another thread that tries to grab the
same lock/mutex, we could get into a deadlock (the spin lock
call is called with preemption disabled in the mutex lock code).

To avoid that possibility, disable preemption before doing the
smp_send_stop().

Change-Id: I7976c5382d7173fcb3cd14da8cc5083d442b2544
Signed-off-by: Mike J. Chen <mjchen@google.com>
lib/lzo: Update LZO compression to current upstream version

This commit updates the kernel LZO code to the current upsteam version
which features a significant speed improvement - benchmarking the Calgary
and Silesia test corpora typically shows a doubled performance in
both compression and decompression on modern i386/x86_64/powerpc machines.

Signed-off-by: Markus F.X.J. Oberhumer <markus@oberhumer.com>
[PATCH] cpufreq: conservative: add hotplug awareness to Conservative governor.
Its based on load and checks for load & online cores every 5 kernel ticks.

Ported the hotplug algorithm of franciscofranco <franciscofranco.1990@gmail.com>
from his commit here: c415db242a613e02400d7185b8ef3914b4689eb2

I left the original Conservative untouched at first to see if I could gain the same kind of battery
savings without the standalone hotplug system used on the S2 kernel. My personal tests show
that I could gain up to an extra 12% of screen on time (which is my preferred method of gauging
battery life as keeping the device as a paperweight with everything off is not my idea of maximizing a
smart device).

I ported franciscofranco's hotplug awareness for ondemand to conservative to see if I can still gain even
just 5-7% more if the governor was hotplug aware.

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
[PATCH] cpufreq: conservative:Tweak hotplug values of conservative to stay true to its nature as a governor

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
cpufreq: conservative: tweak hotplug algorithm to load other cores less agressively

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
Permissions fixes for .c, .h, .txt, Makefile, Kconfig which were set at 755 by Samsung
jrcu: Add Joe Korty's RCU (Thanks to Joe Korty)

jRCU is a minimal-footprint RCU that is most suitable for small SMP systems.
jRCU may also be a good choice for systems with low latency requirements.
It does RCU garbage collection from a single CPU rather than have each CPU do its own.
This frees up all but one CPU from interference by this periodic requirement.

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
Buildscript cleanup

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>