msm: intelli_hotplug: Fix build define
SELinux: use ARRAY_SIZE

ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Removed spaces.
Merged with cm-11.0 original branch
Merged drivers/i2c with cm-11.0 org branch
Restored iommu from cm-11.0 original branch
Restored binder from Yuri branch
removed vmregion. we don'use it
Updated cpuidle part.
Enabled bt bluesleep
Fixed poweroff charging.
Trying to fix rr. Use single workqueue allocation for rpm_smd.
Updated kernel configs from cm-11.0 org branch.
Merge "Added jactive support" into cm-11.0
msm_hotplug: DEFAULT_FAST_LANE_MIN_FREQ	to 1890000
msm: msm_rq_stats: Tone down mpdecision

Add a new Kconfig to enable more conservative computations sent
to mpdecision:

 * Do a time window weighted load computation instead of just a sum
 * Do an sliding window averaged time computation for number runnable

The purpose of these changes is to make mpdecision less likely to
keep extra cores online.  It currently has a tendancy to run more
cores running than needed and this can even cause some lag issues.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
sched: Compute avg_nr_running for RQ Stats

* We already compute avg_nr_running for intelli hotplug.
* Let's make it available for conservative stats of MSM RQ as
  well.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: msm_rq_stats: Add proper attribute to enable hotplug

* hotplug_disable attribute resets when device suspend and
  sets when device resumes.
* Thereby, the value is dynamic. Perhaps, this value is read
  by userspace, so we don't want to mess with it further.
* Restore hotplug_disable to original format of read-only.
* Introduce hotplug_enable attribute which will do the job.
* We have "enable" attribute for other hotplug drivers, so
  this implementation aligns with them.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Dorimanx Note:
Ported for my rq_stats code.
Enable more conservative computation of load and size of the run queue.

The purpose of these changes is to make mpdecision less likely to
keep extra cores online.  It currently has a tendancy to run more
cores running than needed and this can even cause some lag issues.

https://github.com/neobuddy89/hammerhead_kernel_caf/commit/1a6dc0a92a47f078a02d84aecce112a7f5319d83

Conflicts:
	arch/arm/configs/dorimanx_d800_defconfig
	arch/arm/configs/dorimanx_d801_defconfig
	arch/arm/configs/dorimanx_d802_defconfig
	arch/arm/configs/dorimanx_d803_defconfig
	arch/arm/configs/dorimanx_f320_defconfig
	arch/arm/configs/dorimanx_ls980_defconfig
	arch/arm/configs/dorimanx_vs980_defconfig
RQ_STATS: mod suspend function.