ARM: smp: BUG() if smp_send_reschedule() is called for an offline cpu

Sending an IPI_RESCHEDULE to an offline CPU is incorrect and potentially
bad for both power and stability. On some sub-architectures such as MSM,
if a power-collapsed CPU is unexpectedly woken up by an IPI, it will be
begin executing without the preparations that would normally happen as
part of CPU_UP_PREPARE. If clocks, voltage regulators, or other hardware
configuration are not performed, the booting CPU may cause general
instability or (at best) poor power performance since the CPU would be
powered up but not utilized.

One common cause for such issues is misuse of add_timer_on() or APIs
such as queue_work_on() which call it. If proper precautions are not
taken to block hotplug while these APIs are called then a race may
result in IPIs being sent to CPUs that are already offline.

This same argument could be applied to other IPIs (with the exception
of IPI_WAKEUP), but the others are already restricted to only online
CPUs by existing mechanisms, so an explicit assertion is not useful.

Change-Id: I437db112e7e2fa7c0635e4e97e265692621944f1
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
cpufreq: bail early if target_freq == current.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
block: Disable add_random

add_random was implemented for spinning hard disks.  It only slows SSDs down.  Read here http://wiki.samat.org/SSD for more info.

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
bcmdhd: Decrease to 250 ms

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	drivers/net/wireless/bcmdhd/dhd.h

Signed-off-by: engstk <eng.stk@sapo.pt>
GPU: add optimization flags to GPU drivers

Signed-off-by: Lens-F <tnoah12@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
Makefile: tweaks

- Removed hardcoded toolchain.
- -o3 & Cortex-A15 optimizations.

Signed-off-by: LaboDJ <jacopolabardi@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:

	Makefile

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	Makefile

	modified:   Makefile
vfp: Cortex-A15 optimizations

Signed-off-by: LaboDJ <jacopolabardi@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
arm: Cortex-A15 optimizations

Signed-off-by: LaboDJ <jacopolabardi@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:

	arch/arm/Makefile

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	arch/arm/Makefile

	modified:   arch/arm/Makefile
makefile: tune flags

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	Makefile

	modified:   Makefile
Disable Tracer

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
Update Piggy

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
Netfilter: Fix Build Error

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
Disable More Tracer

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>