Revert "sched: Remove get_online_cpus() usage"

This reverts commit 7755290e4ee70b2ec1094452bb19fbd6053d5b68.

Revert "sched: Remove extra put_online_cpus() inside sched_setaffinity()"

This reverts commit 0372a8eb16e69345a12c1e1ce3c5e1aa4a758dca.

Revert "sched: Fix endless sync_sched/rcu() loop inside _cpu_down()"

This reverts commit 2baf8e44494bc6bd5e002d51740191f2c0da2470.

Revert "sched: Remove get_online_cpus() usage"

This reverts commit f0fbb1d0126e81adfb565474b5a3fd73425a98d0.
cpufreq: cpu-boost: Introduce scheduler assisted load based syncs

Previously, on getting a migration notification cpu-boost changed
the scaling min of the destination frequency to match that of the
source frequency or sync_threshold whichever was minimum.

If the scheduler migration notification is extended with task load
(cpu demand) information, the cpu boost driver can use this load to
compute a suitable frequency for the migrating task. The required
frequency for the task is calculated by taking the load percentage
of the max frequency and no sync is performed if the load is less
than a particular value (migration_load_threshold).This change is
beneficial for both perf and power as demand of a task is taken into
consideration while making cpufreq decisions and unnecessary syncs
for lightweight tasks are avoided.

The task load information provided by scheduler comes from a
window-based load collection mechanism which also normalizes the
load collected by the scheduler to the max possible frequency
across all CPUs.

Change-Id: Id2ba91cc4139c90602557f9b3801fb06b3c38992
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
msm: kgsl: Update calculation for graphics IOMMU context IDs

Calculate graphics IOMMU context IDs using the 'label' property of
the device tree node of that context. Context IDs are independent
of the register addresses of the SMMU device and its contexts, which
change for every target.

Change-Id: I16825d7248081997a442d4fb59ca5b04b88e33fd
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Prabhat Awasthi <pawasthi@codeaurora.org>
msm: hotplug: On- and offline cpus only when enabled

I mean really, really enabled...
cpufreq: ondemand: Calculate load_at_max_freq based on current policy->max