CPUFREQ: Clean Ondemand get tit close to LG stock, revert tuning in others.

*Clean the SMART UP its was not allowing max freq and was laggy.
*Revert DEF_SAMPLING_DOWN_FACTOR = 4 as it's make max freq always on core 0.

Conflicts:
	drivers/cpufreq/cpu-boost.c
	drivers/cpufreq/cpufreq_ondemand.c
Disable ARCH_POWER and SLEEPERS

*Power save on suspend was better with ARCH_POWER OFF.
Set all versions of sync_freq to middle range freq to gain high perf.

and not allow to set less than 960000Mhz
as at this point gov start to LAG hard!

LG default hotplug also set sync_freq types to 960000 by default,
and if user select default hotplug he loose performance allot.

Conflicts:
	drivers/cpufreq/cpufreq_ondemand.c
cpufreq_alucard: Added init_boostfreq pcpu parameter.
Disable gentle_fair_sleepers & arch_power in  kernel/sched/fair.c
Disable WIFI Driver Debug. works good no need to debug.

Thanks neobuddy89

Conflicts:
	drivers/net/wireless/bcmdhd/Makefile
drivers: dma: warn if ioremap fails

dma-removed alloc hook tries to ioremap a carve-out in order
to memset it to 0s. Warn the user if it fails due to low
vmalloc space.

Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Revert "qseecom: change return value to 0 if app id exists when loading app"

This reverts commit 60d8cbf8c1803052e89d5927c330c21f8cb2f5e9.
Disable HOTPLUG TRACE in kernel/cpu.c not exist in main line.
On boot, my thermal control hold cpu 3 in OFF state... READ MORE.

So on boot only kernel/cpu.c scream that CPU 3 cant be enabled!

well that is OK! :)

4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed
4>_cpu_up: attempt to bring up CPU 3 failed

reduce this panic to 1 in 5 * HZ interval.

so i will see maybe 5 alerts during boot! not 50 :)
list: introduce list_first_entry_or_null

non-rcu variant of list_first_or_null_rcu

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Linux 3.4.99

Conflicts:
	kernel/locking/rtmutex.c
Tune CPU-BOOST and MSM HOTPLUG.
Tune CPUBOOST
cpufreq: interactive: Simplify frequency calculations

Previously, complicated calculations led to oscillating cpu
frequencies that ruined user experience even on high-end
devices. Revert to the classic calculations based on a
percentage of current max frequency.  This way, we're using
freqs more evenly and much more predictable.

Conflicts:
	drivers/cpufreq/cpufreq_interactive.c
cpufreq: interactive: Consider changed min limit a frequency boost

A changed policy->min can safely be considered a frequency boost.
Process this change analogous to the cpufreq_interactive_boost()
routine.
cpufreq: interactive: Honor boosted state in several timer calculations
async: introduce 'async_domain' type

This is in preparation for teaching async_synchronize_full() to sync all
pending async work, and not just on the async_running domain.  This
conversion is functionally equivalent, just embedding the existing list
in a new async_domain type.

The .registered attribute is used in a later patch to distinguish
between domains that want to be flushed by async_synchronize_full()
versus those that only expect async_synchronize_{full|cookie}_domain to
be used for flushing.

[jejb: add async.h to scsi_priv.h for struct async_domain]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
CPUFREQ: do not allow to set sampling_down_factor above 3

When setting sampling_down_factor 4 or above core freq stuck at max.
random: convert use of typedef ctl_table to struct ctl_table

This typedef is unnecessary and should just be removed.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>