Reuse build fix by codeworkx
Fix Makefile to not use the gcc wrapper, and nuke coresight.

Conflicts:

	drivers/Makefile
Usual stomping through the Makefiles
Fast forward CFLAGS to present day.
Adding short version of deadline tweak.
Increasing default readahead values.
Remove another debug object.
fsync control files
Not cool to force that debugging.
Parking this WIP to catch up thermald and mpdecision removal first.

Conflicts:

	arch/arm/mach-msm/acpuclock-8064.c
This adds limited OC with limited freq steps. The required changes to make that work.
It adds Will Tisdale's auto_hotplug V.220 with all tweaks that were already added in 4.2
This adds an imperfect way to limit boot frequency. It still needs the changes done in 4.2 to jive with the thermal driver.

Conflicts:

	arch/arm/kernel/perf_event.c
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/acpuclock-8064.c
	arch/arm/mach-msm/cpufreq.c
	arch/arm/mach-msm/lge/mako/board-mako.c
fix
Remove debugging, in kernel mpdecision (thanks Francisco), drop L2 back down for a moment, fix silly lazy shift typo

Conflicts:

	arch/arm/mach-msm/acpuclock-8064.c
Apollyon musings.

Conflicts:

	arch/arm/mach-msm/acpuclock-8064.c
	arch/arm/vfp/Makefile
From 7747bd4bceb3079572695d3942294a6c7b265557 Mon Sep 17 00:00:00 2001
From: Dave Chinner <dchinner@redhat.com>
Date: Tue, 02 Jul 2013 12:38:35 +0000
Subject: sync: don't block the flusher thread waiting on IO

When sync does it's WB_SYNC_ALL writeback, it issues data Io and
then immediately waits for IO completion. This is done in the
context of the flusher thread, and hence completely ties up the
flusher thread for the backing device until all the dirty inodes
have been synced. On filesystems that are dirtying inodes constantly
and quickly, this means the flusher thread can be tied up for
minutes per sync call and hence badly affect system level write IO
performance as the page cache cannot be cleaned quickly.

We already have a wait loop for IO completion for sync(2), so cut
this out of the flusher thread and delegate it to wait_sb_inodes().
Hence we can do rapid IO submission, and then wait for it all to
complete.

Effect of sync on fsmark before the patch:

FSUse%        Count         Size    Files/sec     App Overhead
.....
     0       640000         4096      35154.6          1026984
     0       720000         4096      36740.3          1023844
     0       800000         4096      36184.6           916599
     0       880000         4096       1282.7          1054367
     0       960000         4096       3951.3           918773
     0      1040000         4096      40646.2           996448
     0      1120000         4096      43610.1           895647
     0      1200000         4096      40333.1           921048

And a single sync pass took:

  real    0m52.407s
  user    0m0.000s
  sys     0m0.090s

After the patch, there is no impact on fsmark results, and each
individual sync(2) operation run concurrently with the same fsmark
workload takes roughly 7s:

  real    0m6.930s
  user    0m0.000s
  sys     0m0.039s

IOWs, sync is 7-8x faster on a busy filesystem and does not have an
adverse impact on ongoing async data write operations.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

commit	7747bd4bceb3079572695d3942294a6c7b265557 (patch)
tree	7d6ecbf886ddcb4a102e3b501ee02ea82b3719c2
parent	8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
Mako (absolute) Voltage control.

This started out as just including the existing work of someone else.
But that was so obfuscated and needlessly moved in sysfs, i turned it into the type control
we have on NP, meaning same sysfs location and output formatting.
Since the various kernels range from no preUV to different levels of UV it is best to encourage the user
to think in absolute voltages.
"I can UV -150 on kernel X! Really? Odd, i can only UV kernel Y -50mV!"
Kernel X has no preUV, kernel Y has 100mV preUV, so they both run the same.
This is needlessly confusing to users.

Talking in absolutes, users will get a better understanding of "what the other guy's" device is capable of.
Sticking to a common sysfs location and to the common absolute voltage is thus the right thing to do.

This seems to work now as it should.

This is heavily based on coolbho3k's NP patch. from Paul's stuff we might have a few function names, but not the contents.
This is not his, if he claims otherwise, he is wrong.
trace/events: add gpu trace events

Change-Id: I0607b9c776acf61cb796b8572cf8cfb8b2dc1377
Signed-off-by: Jamie Gennis <jgennis@google.com>
trace/events: fix gpu event timestamp formatting

This change fixes the how the gpu_sched_switch timestamp field is formatted.

Signed-off-by: Jamie Gennis <jgennis@google.com>
Change-Id: I273234935254ed15772c9e561c9af20e480004ae
no kgsl trace
no benefit registered.