drivers: thermal: fix derp.

Signed-off-by: Derek Cannata <thederekjay@gmail.com>
auto_hotplug: MOAR faster please!!!

Signed-off-by: Derek Cannata <thederekjay@gmail.com>
auto_hotplug: Ok.. try this..

Signed-off-by: Derek Cannata <thederekjay@gmail.com>
msm: cpufreq: Initialize cpufreq driver early at boot

MSM cpufreq driver registering with the CPUFreq framework during
late_initcall() may cause the device to be available a few seconds after
the clock driver is ready for changing frequency. This could be bad for
boot and/or thermal performance, since the cpu will continue to boot at
whatever frequency the bootloaders set it to.

Initialize cpufreq driver as part of device_initcalL() but only after
all the clock drivers have had a chance to initialize their devices.

Change-Id: Iaa4867108f59a368ee5b511d35ea2e8e219d39d3
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
Revert "hrtimer: Prevent enqueue of hrtimer on dead CPU"

This reverts commit 878f1bd9ddd4b9734ad72d187b0266e640c99e08.

Based on upstream mailing list discussions, this patch is not
necessary since switch_hrtimer_base() is called with interrupts
disabled.

Change-Id: I53c64b1a4cea3a310ef53d1729a00baee6e4534a
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
Revert "hrtimer: Consider preemption when migrating hrtimer cpu_bases"

This reverts commit f31b9b9f30f76847c94155f9da4da12f912b0885.

Based on upstream mailing list discussions, this patch is not
necessary since switch_hrtimer_base() is called with interrupts
disabled.

Change-Id: I0244a744516e1c289af25043ee8b866be54813e3
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
msm: cpufreq: Always update frequency limits when core is online

Remove condition in msm_cpufreq_init() so that when cpu is set to
online, it will call set_cpu_freq() and update the frequency limits.

CRs-Fixed: 462816
Change-Id: I40ac33c9cb4b42590a83f9d61b74f23379f5642e
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
fs: sync: add missing return if fsync is disabled from userspace.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
Makefile: Remove this. Set back to default.

Signed-off-by: Derek Cannata <thederekjay@gmail.com>
Makefile: Try these..

Signed-off-by: Derek Cannata <thederekjay@gmail.com>
block: urgent: Fix dispatching of URGENT mechanism

There are cases when blk_peek_request is called not from blk_fetch_request
thus the URGENT request may be started but the flag q->dispatched_urgent is
not updated.

Change-Id: I4fb588823f1b2949160cbd3907f4729767932e12
CRs-fixed: 471736
CRs-fixed: 473036
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
leds: Add LED trigger for thermal sensor

Add a thermal trigger named 'thermal' which activated by thermal
sensor.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
mach-msm: mako: Use default triggers for RGB LED

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
leds: Do not remove trigger when brightness = LED_OFF

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
leds: Switch off LED when thermal trigger deactivated

Also initialize properly driver.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
power: pm8921-charger: Don't pollute kmsg when baterry < 10%

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
power: pm8921: Change info message to debug

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire.

From http://ripke.com/loadavg/moire

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
cpufreq: stats: Don't stop notification call chain

The notification call chain is stopped if error returned. Since
no further steps is needed to handle such error, let's just print
a debug message here so the other registered cpufreq notifier can
be called correctly.

Signed-off-by: Lianwei Wang <a22439@motorola.com>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>
ledtrig/msm_thermal: add get_threshold()

Add get_threshold() for the ledtrig-thermal to determine whats the
lowest value to check the temp from. Also fetch temp from the
correct sensor.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: Derek Cannata <thederekjay@gmail.com>