Makefile: make CC/CPP use KERNELFLAGS

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
ARM: 8165/1: alignment: don't break misaligned NEON load/store

The alignment fixup incorrectly decodes faulting ARM VLDn/VSTn
instructions (where the optional alignment hint is given but incorrect)
as LDR/STR, leading to register corruption. Detect these and correctly
treat them as unhandled, so that userspace gets the fault it expects.

Reported-by: Simon Hosie <simon.hosie@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
ARM: 7605/1: vmlinux.lds: Move .notes section next to the rodata

The .notes, being read-only data by nature, were placed between
read-write .data and .bss. This was harmful in case of the XIP
kernel, as being placed in the RAM range, most likely far
from the ROM address, was inflating the XIP images.

Moving the .notes at the end of the read-only section
(consisting of .text, .rodata and unwind info) fixes the problem.

Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
ARM: KVM: enforce maximum size for identity mapped code

We're about to move to an init procedure where we rely on the
fact that the init code fits in a single page. Make sure we
align the idmap text on a vector alignment, and that the code is
not bigger than a single page.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>

Conflicts:
	arch/arm/kernel/vmlinux.lds.S
ARM: 8088/1: vmlinux.lds.S: drop redundant .comment

Commit 78d7530ac3 ("ARM: Clean up linker script using new linker script
macros.") modified the arm kernel linker script to use the STABS_DEBUG
macro, but left a .comment section definition. As STABS_DEBUG defines
the .comment section in an identical way, the second section definition
is redundant and can be removed.

This patch removes the redundant .comment section definition.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
ARM: 8168/1: extend __init_end to a page align address

This patch changes the __init_end address to a
page align address, so that free_initmem() can
free the whole .init section, because if the end
address is not page aligned, it will round down to
a page align address, then the tail unligned page
will not be freed.

Signed-off-by: wang <yalin.wang2010@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
msm: limiter: Improve routines

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
blu_active: use simple freq calculation

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
defconfig: update

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
blu_plug: use input boost, __ref to lighten the driver, misc fixes

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
cpufreq: blu_active: sync with code_blue

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
disable cpuboost driver for this branch

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
Revert "blu_plug: use input boost, __ref to lighten the driver, misc fixes"

This reverts commit 39799d201df538a061ae62567fc7adf546ea4948.
Revert "disable cpuboost driver for this branch"

This reverts commit e3cf9f8016c5894c2792733a1bea1e461d2b2f7c.

kpanic was not caused by this
squash blu_plug

blu_plug: reworked screenoff function to hotplug working without core lock, fix powersaver not resetting max freq properly
blu_plug: rework input touch boost, minor fixes
blu_plug: use input boost, __ref to lighten the driver, misc fixes

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
defconfig: update

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
defconfig: force instruction alignment

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>

Conflicts:
	arch/arm/configs/big-bum_defconfig
blu_active: use simple freq calculation

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
defconfig: update

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>
defconfig: sync with cm/google

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>