CHROMIUM: clocksource: allow clocksources to be selected earlier during boot

Global and per-CPU timers ought to be initialized once SMP initialization
is complete.  Although the clocksources associated with these timers may
not be registered until later in the boot process, they should be ready
to go once registered.  We'd like to stop using the super low-resolution
boot clocksource (jiffies) as soon as possible since devices may rely on
accurate timekeeping while being brought up during boot, so move
clocksource_done_booting() to arch_initcall time so that we can switch
to a higher-resolution clocksrouce earlier in the boot process.

BUG=chrome-os-partner:20458
TEST=Pit and Lumpy both still boot reliably.  Boot time on Pit improves
considerably:
Before: [    3.032967] VFS: Mounted root ...
After:  [    1.855936] VFS: Mounted root ...
Lumpy boot time improves very slightly:
Before: [    1.786347] VFS: Mounted root ...
After:  [    1.754297] VFS: Mounted root ...

Change-Id: I951fee2e7e4697ccfe7f845a2c1c6bd80669a8d5
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/170102
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
Cpufreq: Added input event hook to ramp up cpu frequency
This will cause switch to maximum opp immediately when user
interaction occurs, i.e. touchscreen input or keypad activity.

Change-Id: I0cfe32479ef62a967f359c1bf57f97eefde7e8f7
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
[bsteuer@quicinc.com: fixed cpu_dbs_info naming, added header]
Signed-off-by: Brian Steuer <bsteuer@codeaurora.org>
net: wireless: bcmdhd: Reduce active scan time to 20/30
ARM: 7015/1: ARM errata: Possible cache data corruption with hit-unde…
…r-miss enabled

This patch is a workaround for the 364296 ARM1136 r0p2 erratum (possible
cache data corruption with hit-under-miss enabled). It sets the
undocumented bit 31 in the auxiliary control register and the FI bit in
the control register, thus disabling hit-under-miss without putting the
processor into full low interrupt latency mode.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Conflicts:
	arch/arm/Kconfig
ARM: 7782/1: Kconfig: Let ARM_ERRATA_364296 not depend on CONFIG_SMP
imx_v6_v7_defconfig handles both multi-core and single-core SoCs, and it has CONFIG_SMP=y selected by default.

With such config we cannot select ARM_ERRATA_364296, as it depends on !SMP.

Let ARM_ERRATA_364296 be undependent on CONFIG_SMP, so that we can select this erratum for the ARM1136 SoCs, even if CONFIG_SMP=y is enabled.

Change-Id: Ia96ea3d8e9468884962793cc4a6b19f62e1adc59
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
random: backport updates from Linux master (3.13-rc4)
lib, net: make isodigit() public and use itAndy Shevchenko
random: add debugging code to detect early use of get_random_bytes()Theodore Ts'o
random: initialize the last_time field in struct timer_rand_stateTheodore Ts'o
random: don't zap entropy count in rand_initialize()Theodore Ts'o
random: printk notifications for urandom pool initializationTheodore Ts'o
random: make add_timer_randomness() fill the nonblocking pool firstTheodore Ts'o
random: convert DEBUG_ENT to tracepointsTheodore Ts'o
random: push extra entropy to the output poolsTheodore Ts'o
random: drop trickle modeTheodore Ts'o
random: adjust the generator polynomials in the mixing function slightlyTheodore Ts'o
random: speed up the fast_mix function by a factor of fourTheodore Ts'o
random: cap the rate which the /dev/urandom pool gets reseededTheodore Ts'o
random: optimize the entropy_store structureTheodore Ts'o
random: optimize spinlock use in add_device_randomness()Theodore Ts'o
random: fix the tracepoint for get_random_bytes(_arch)Theodore Ts'o
random: account for entropy loss due to overwritesH. Peter Anvin
random: allow fractional bits to be trackedH. Peter Anvin
random: statically compute poolbitshift, poolbytes, poolbitsH. Peter Anvin
random: mix in architectural randomness earlier in extract_buf()Theodore Ts'o
random: allow architectures to optionally define random_get_entropy()Theodore Ts'o
random: run random_int_secret_init() run after all late_initcallsTheodore Ts'o
char: Convert use of typedef ctl_table to struct ctl_tableJoe Perches1
random: fix accounting race condition with lockless irq entropy_count updateJiri Kosina
drivers/char/random.c: fix priming of last_dataJarod Wilson
lib/string_helpers: introduce generic string_unescapeAndy Shevchenko
random: fix locking dependency with the tasklist_lockTheodore Ts'o
locking: Various static lock initializer fixesThomas Gleixner
random: prime last_data value per fips requirementsJarod Wilson
random: fix debug format stringsJiri Kosina
random: make it possible to enable debugging without rebuildJiri Kosina
random: mix in architectural randomness in extract_buf()H. Peter Anvin
random: Add comment to random_initialize()Tony Luck
random: add tracepoints for easier debugging and verificationTheodore Ts'o

Conflicts:
	drivers/char/random.c
	include/linux/ctype.h
	include/trace/events/random.h
	lib/Makefile
Added BITS_PER_LONG_LONG definition avoiding lib/vsprintf.c errors.
disable slub debug
hard float point