ext4: add missing save_error_info() to ext4_error()

commit f3fc0210c0fc91900766c995f089c39170e68305 upstream.

The ext4_error() function is missing a call to save_error_info().
Since this is the function which marks the file system as containing
an error, this oversight (which was introduced in 2.6.36) is quite
significant, and should be backported to older stable kernels with
high urgency.

Change-Id: Ifd98e9021037dbf5b84152d8853b214248961794
Reported-by: Ken Sumrall <ksumrall@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: ksumrall@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ken Sumrall <ksumrall@android.com>
cardhu: build correctly on OS X

 * Added linker compatibilty for building on OS X.

Change-Id: Ibc4886805b380b3a5417fd62ad37b6dbee4d3a51
kernel/sys: cpuquiet compatibility fixup

Change-Id: I6af61aee8df5fe2de07c40b7711fd8cbf44ca6f7
ARM: tegra: cpuquiet: Notify the cpuquiet governor when the driver is busy

Added generic busy/free notifiers that the driver can invoke to let the
governor know that it cannot process further core online/offline
requests (invoked in our case whenever we switch to the LP cluster).

Change-Id: I5e3f7f28f38806a7f87050e8d0c8d2f2cf7521aa
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/cpuquiet.c
ARM: tegra: cpuquiet: Fix cpuquiet notifiers

The notifiers now properly fire on every cluster switch

Change-Id: I381301cf62f25b49532326cc7759696c7f6797b7
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
cpuquiet: Runnable threads governor

[perf] The runnable threads governor only looks at the average number of
runnables in the system to make a decision when bringing cores
offline/online. First pass; tweaks thresholds and delays to reduce
decision latency to about ~50-70ms per core (from ~100-150ms per core)

Change-Id: Idd3b268a74a8f56ad3fc0e5c7f388174d1b6611f
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
cpuquiet: Add notifiers for the runnables governor

The governor stops sampling whenever the device is busy and starts its
sampling loop when the device is free.

Change-Id: I6b4dae94a60f8091d34400028a8d1f58faa51380
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
drivers/cpuquiet/governors/runnable_threads: fix typo derp
drivers/cpuquiet/governors: make balanced as default governor
cpuquiet/governors/balanced: make runnable thread as a compilation option
board/cpu-tegra3: Additional runnable threat edits necessary for compilation option

Change-Id: I1fa2fab02582e987314ae7e23342c09c78d042af
tf700t: Restore CM asusdec changes

http://review.cyanogenmod.org/#/c/31907
http://review.cyanogenmod.org/#/c/32132
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Change-Id: I9edf92abcd6a6f8bc35428fc210d8e6247e12983
TF700t: Function Keys (Fn) (1/2)

Enable function keys in asusdec when CTRL, SHIFT or ALT are pressed

Patchset 2: Rebased

Change-Id: Ib811726c04842f606baf0d4835ffe5b70a5e1192
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
tf700t: fix asusdec_kp_sci scancode

Change-Id: Ibe5a6382b5f6c94c6b6fa9dcbdb92317f4d82b15
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>