There is a race between klist_remove and klist_release. klist_remove
uses a local var waiter saved on stack. When klist_release calls
wake_up_process(waiter->process) to wake up the waiter, waiter might run
immediately and reuse the stack. Then, klist_release calls
list_del(&waiter->list) to change previous
wait data and cause prior waiter thread corrupt.
The patch fixes it against kernel 3.9.
Change-Id: I3c418c9ca5411a8ba934322172e33b93d6a480bb
Signed-off-by: wang, biao <biao.wang@intel.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: ac5a2962b02f57dea76d314ef2521a2170b28ab6
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Current LPM mode levels are not sufficient to reduce the
power consumption on all the APPS proc usecases(e.g HSDPA).
To address this adding a new LPM level wich takes less time
to collapse the APPS proc and L2 cache. Also this mode will
not inform the RPM about APPS PC state.
CRs-fixed: 552743
Change-Id: I9511c147b85c21693636a2667c9040f111a9e9bf
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Currently when the core decide to enter into "PC + L2 PC"
LPM mode it informs to RPM and there is a chance of
system can enter into either XO or VDDmin. But this LPM
mode take longer time to enter and exit. Because of this
limitation some of the usecases where there is a less
latency APPS proc stays at lower LPM level (i.e GDFS) and
causing more power consumption. To address this issue adding
an intermediate LPM mode where L2 goes to PC but not inform
to RPM.
CRs-fixed: 552743
Change-Id: I321ff260d5baf8ac44917d67e9c9dfd260c8d5ca
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Platform PM driver takes LPM parameters as one of the input
and decide the best idle system low power mode. Current LPM
parameters are not optimal and this can lead to more power
consumption for APPS proc active usecases. This change tunes
the low power mode parameters such as "latency",
"time overhead", "steady state power" and "energy overhead"
for 8226v1 and 8226v2.
CRs-fixed: 506262
Change-Id: Iecfc1d7f722c8416b70ddf4c447a5050f0c1187c
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Now we use type of RTC_WAKEUP for the poweroff alarm.
Actually lots of other applications also use this type.
But these applications never expect the device will
power on after it has been shut down. So we need to
add dedicated alarm type for the Deskclock or similar
applications.
CRs-fixed: 529674
Change-Id: I9b7911906446daa1aeb5835478c9837f8ef797f2
Signed-off-by: Figo Wang <figow@codeaurora.org>
Goodix GT9xx touchscreen driver supports up to six groups of config
data and uses hardware GPIO configuration to select which one will
be used. This change allows these six config groups to be loaded
from devicetree.
Change-Id: I9dfd698e7084164688dd964ed914d5eecc75ecd3
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Replace non-standard debug function with the conventional
functions in Goodix driver. And remove unnecessary debug
function used in Goodix driver.
Change-Id: Ia89d225333c1309710aab67b9c406784567e3050
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Add dynamic detection support to goodix driver, where
the driver tries to read the chip id and make sure
it is communicating with the right chip.
gtp_read_version is modified to gtp_read_fw_version
which reads the firmware version from the controller
and will be used during fw update process.
CRs-fixed: 538818
Change-Id: I2dc51b84f817413da6bf9b266e2fe7e0bb09c4bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Even if external micbias is used for recording, callback
needs to be registered to setup for recording. Register
same callback as used with internal micbias.
CRs-Fixed: 550513
Change-Id: If7f606f265d46aa20a29fc97afd2468e7fe97379
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
Declare variables used only if CONFIG_DEBUG_FS is defined within ifdef
statements.
CRs-fixed: 554999
Change-Id: I28d2104ebd7baba8a151fc34946463f2429709b1
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>