SQUASH qpnp stuff

msm: qpnp-power-on: Add API to reset and shutdown the system

Add an API to allow the system to reset or shutdown, depending on
the parameter passed. The qpnp-power-on driver supports any number
of PON devices, but only one device is permissible to reset the
device. Introduce a new Device Tree binding to indicate which
device should be responsible for this resetting the system.

Change-Id: I4086b50402a5c997fb0efada3e65116eec8f4e53
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
(cherry picked from commit 6e34b5121de2ff881cb432e23eec857c168c1314)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

msm: qpnp-power-on: Add API to detect warm reset

Add an API to allow consumers to know whether the PMIC went through
a warm or cold boot. This currently only checks the PON device that
allows resets.

Change-Id: Id145ec62bbdf0e4988476f2c2084f92c3f588209
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
(cherry picked from commit 6cc3271dd893a71b293f456f3755d38d4aa943ba)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	drivers/platform/msm/qpnp-power-on.c

msm: qpnp-pon: Add API to configure the PON trigger source

The API enables/disables power-on trigger capability of a PON source.
If a specific PON trigger is disabled it cannot act as a power-on
source to the PMIC.

CRs-Fixed: 489577
Change-Id: Ibec2063215eafc47701a3e255849e16f1d7b2cee
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
(cherry picked from commit d73f989ff223a07fa60981c7b05793e7dade2574)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	drivers/platform/msm/qpnp-power-on.c

msm: qpnp-power-on: Add finer control of PMIC power off type

Modify the qpnp_pon_system_pwr_off() function so that different
types of PMIC reset may be requested.  In particular, add support
so that both warm and hard reset may be used.  Warm reset
maintains the hardware state of some PMIC peripherals.  Hard
reset resets all PMIC peripherals.

Change-Id: Ibe1491acfe90364e96b776d26e158522dfea9c2b
CRs-Fixed: 507850
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit 06b96aa19e77ddeccacb1f5815ac781b963e971c)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	arch/arm/mach-msm/restart.c

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
Squash 'enhance power efficiency' patches

Series of patches from NVIDIA on some critical blocking
code paths to allow the CPU to relax instead of busy spinning
thus lowering the load_average and lowering power consumption.

Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
(cherry picked from commit 414056476daa97d1f725b5aa63eb4c1448026d3f)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
sched: Add controls for sched features

* Currently we provide users attributes to enable/
  disable GENTLE_FAIR_SLEEPERS and ARCH_POWER
* This patch uses already implemented GFS structure
  to add ARCH_POWER attribute.
* Attributes can be found under /sys/kernel/sched/*

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
(cherry picked from commit fbcd2301e8313e6dc877ed0f7ae2c6401684c888)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	kernel/ksysfs.c
	kernel/sched/fair.c

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
Default to noatime/nodiratime

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
add defconfig

Signed-off-by: thirdzcee <thirdzcee@gmail.com>