Completely new .config
compatibility for CM
author:thalamus - compiler warning fixes
timekeeping: fix 32-bit overflow in get_monotonic_boottime

get_monotonic_boottime adds three nanonsecond values stored
in longs, followed by an s64.  If the long values are all
close to 1e9 the first three additions can overflow and
become negative when added to the s64.  Cast the first
value to s64 so that all additions are 64 bit.

Change-Id: Ic996d8b6fbef0b72f2d027b0d8ef5259b5c1a540
Signed-off-by: Colin Cross <ccross@android.com>
Custom OC
Allow 1.2GHz OC
Allow 1.1GHz OC with 10% FSB/GPU increase

When 1.2GHz step is in use, prevent 1.1GHz step. This allows
users to OC only the CPU (in case their device is uncomfortable
with FSB/GPU OC)

Better framerates to be had at 1.1GHz but better calculation
times at 1.2GHz

SmartassV2 paramaters tweaked to take advantage of the higher
frequencies (for gaming)

Conflicts:

	arch/arm/mach-s5pv210/cpufreq.c
Fix broken GPU power management
GPU power management control raises the minimum frequency to 200MHz
so that the FSB runs at full speed.
Unfortunately this constantly resets the user policy to 200MHz minimum
which is bad for battery.
This code makes a note of the user policy, and restores it when the
GPU becomes inactive again.

Conflicts:

	drivers/gpu/pvr/s5pc110/sysconfig.c
Experimental tweaks

Conflicts:

	.config
Merge tag 'v3.0.47' into bedalusv6.3f

This is the 3.0.47 stable release

Conflicts:
	Makefile
Merge tag 'v3.0.48' into bedalusv6.3f

This is the 3.0.48 stable release
Merge tag 'v3.0.49' into bedalusv6.3f

This is the 3.0.49 stable release
Merge remote-tracking branch 'common/android-3.0' into bedalusv6.3f
.config
Custom OC
Allow 1.2GHz OC
Allow 1.1GHz OC with 10% FSB/GPU increase

When 1.2GHz step is in use, prevent 1.1GHz step. This allows
users to OC only the CPU (in case their device is uncomfortable
with FSB/GPU OC)

Better framerates to be had at 1.1GHz but better calculation
times at 1.2GHz

SmartassV2 paramaters tweaked to take advantage of the higher
frequencies (for gaming)
fix GPU code
Merge tag 'v3.0.50' into bedalusv6.5

This is the 3.0.50 stable release
From: faux123 <reioux@gmail.com>
Date: Mon, 10 Sep 2012 18:38:51 -0500
Subject: [PATCH] wakeup: Use irqsave/irqrestore for events_lock
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Jon Medhurst (Tixy) recently noticed a problem with the
events_lock usage. One of the Android patches that uses
wakeup_sources calls wakeup_source_add() with irqs disabled.
However, the event_lock usage in wakeup_source_add() uses
spin_lock_irq()/spin_unlock_irq(), which reenables interrupts.
This results in lockdep warnings.

The fix is to use spin_lock_irqsave()/spin_lock_irqrestore()
instead for the events_lock.

Full bug report here:
https://bugs.launchpad.net/linaro-landing-team-arm/+bug/1037565

Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Android Team <kernel-team@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Jon Medhurst (Tixy) <tixy@linaro.org>
Reported-and-debugged-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
modified for Tuna Kernel from Linux 3.5+ by faux123
From: faux123 <reioux@gmail.com>
Date: Mon, 27 Aug 2012 20:43:42 -0500
Subject: [PATCH] time: RCU permitted to stop idle entry via softirq

RCU needs to be able to use softirq to stop idle entry in order to
be able to drain RCU callbacks from the current CPU, which in turn
enables faster entry into dyntick-idle mode, which in turn reduces power
consumption.  This commit therefore silences the error message that is
sometimes produced when the going-idle CPU suddenly finds that it has
an RCU_SOFTIRQ to process.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
backported by faux123 from Linux 3.5+ to Linux 3.0
From: faux123 <reioux@gmail.com>
Date: Tue, 2 Oct 2012 21:19:05 -0500
Subject: [PATCH] sched: Prevent wakeup to enter critical section needlessly

Check the waitqueue task list to be non empty before entering the critical
section. This prevents locking the spin lock needlessly in case the queue
was empty, and therefor also prevent scheduling overhead on a PREEMPT_RT
system.

Signed-off-by: Ivo Sieben <meltedpianoman@gmail.com>
backported from Linux 3.5+ by faux123
Revert idle2 completely
Fix GPU early breakout check in new way