Few variable are being accessed uninitialized when
some conditions fails, fix those uninitialized access
for variable.
Change-Id: I18d5c7dfe94cc47e0d2a14e47c1cf093428f9783
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
The existing calculation of vmpressure takes into account only
the ratio of reclaimed to scanned pages, but not the time spent
or the difficulty in reclaiming those pages. For e.g. when there
are quite a number of file pages in the system, an allocation
request can be satisfied by reclaiming the file pages alone. If
such a reclaim is succesful, the vmpressure value will remain low
irrespective of the time spent by the reclaim code to free up the
file pages. With a feature like lowmemorykiller, killing a task
can be faster than reclaiming the file pages alone. So if the
vmpressure values reflect the reclaim difficulty level, clients
can make a decision based on that, for e.g. to kill a task early.
This patch monitors the number of pages scanned in the direct
reclaim path and scales the vmpressure level according to that.
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Change-Id: I6e643d29a9a1aa0814309253a8b690ad86ec0b13
The BTSCO Sample Rate mixer control would always set
the default value of BTSCO Sample Rate as there is no
matching case in the switch statement.
The change ensures appropriate enum texts are used instead
and the switch case is modified to ensure a match.
Change-Id: I6e6f5d3ba89a4d2e3135b0dd31b3eb7fe367d1fc
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
The present code acquires mclk clock and gpio incorrectly
before the card and device data is properly initialised.
Move the mclk initialisation appropriately to do it in
the right order.
Change-Id: I20c7c1b3fbe76282fd237e6c495db31889981aad
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
Add codec driver for WCD9335 audio codec. This driver
is an ALSA-compliant and constructs the internal codec
audio paths with DAPM widgets and controls. Provides the
controls to the upper layers to enable and configure
audio paths.
Change-Id: I1c5ec2a7c775153ee6722832cb3a76298979d7f4
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Green lines were seen because of in correct initial phase and
phase step size computed with source crop, which results in over
fatching on the edges of source ROI.
Change-Id: If1477afac8b895b51c1ac9bc58b5e4da9f18a769
Signed-off-by: Ramakant Singh <ramaka@codeaurora.org>
Register a led class device controlled by smbcharger. It allows four
patterns on the notification LED: Off, Solid On, Blink pattern1
and Blink pattern2.
Change-Id: Ib6d982c317ab82685e37ff09fc3ab2cfc273dfec
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
When governor is using regular busy time tracking, cpu_load will
never exceed 100 because busy time will never exceed elapsed time in
any one sampling window. The only exception is when frequency is
reduced in middle of a window (e.g. due to thermal throttling). In
this case, cpu_load is likely irrelevant since current frequency
governor has been voting is already higher than what target can run
at.
However, on a heterogeneous CPU system with scheduler input enabled
to track the load of migrated tasks, cpu_load could also exceed 100
when a task migrates from more capable CPU to slower CPU. When this
happens, governor already knows the exact frequency required to handle
this load. There is no need to progressively ramp up frequency in order
to assess the load's real demand. It's not desirable to starve such a
migrating task by forcing it through ramping up process on the slower
CPU.
Direclty jump beyond hispeed_freq and ignore above_hispeed_delay if
cpu_load exceeds 100.
Change-Id: Ib87057e4f00732fad943ab595a33e3059494ef15
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Report the fuel gauge battery soc, coulomb counter soc, and
voltage/intergrator error through the power supply framework.
CRs-Fixed: 808597
Change-Id: Ibd107bdd0cafe7bfdcbc562be984a8a84b604fd0
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
We need to support A5XX on the msm-3.10 branch. Squash all
the changes from msm-3.14 onto msm-3.10 to facilitate this.
Tip commit of msm-3.14 where this was squashed from:
27f1b4d442086ef081141988563e3d48714202c0
Change-Id: Id79b0f274c252c6a37718ec6dd437ffa5e34c4a6
Signed-off-by: Shrenuj Bansal <shrenujb@codeaurora.org>