linux/arch/powerpc
Haren Myneni 44e9309f1f powerpc: Implement PPR save/restore
[PATCH 6/6] powerpc: Implement PPR save/restore

When the task enters in to kernel space, the user defined priority (PPR)
will be saved in to PACA at the beginning of first level exception
vector and then copy from PACA to thread_info in second level vector.
PPR will be restored from thread_info before exits the kernel space.

P7/P8 temporarily raises the thread priority to higher level during
exception until the program executes HMT_* calls. But it will not modify
PPR register. So we save PPR value whenever some register is available
to use and then calls HMT_MEDIUM to increase the priority. This feature
supports on P7 or later processors.

We save/ restore PPR for all exception vectors except system call entry.
GLIBC will be saving / restore for system calls. So the default PPR
value (3) will be set for the system call exit when the task returned
to the user space.

Signed-off-by: Haren Myneni <haren@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-01-10 17:01:13 +11:00
..
boot powerpc/dts/virtex440: Add ethernet phy to virtex440-ml507 board 2013-01-10 15:09:05 +11:00
configs powerpc/pasemi: Enable PRINTK_TIME in defconfig 2013-01-10 17:00:22 +11:00
crypto powerpc: Add a powerpc implementation of SHA-1 2013-01-10 14:43:45 +11:00
include powerpc: Implement PPR save/restore 2013-01-10 17:01:13 +11:00
kernel powerpc: Implement PPR save/restore 2013-01-10 17:01:13 +11:00
kvm powerpc: Disable relocation on exceptions whenever PR KVM is active 2013-01-10 17:00:42 +11:00
lib powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
math-emu
mm powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
net PPC: net: bpf_jit_comp: add VLAN instructions for BPF JIT 2012-11-17 22:12:47 -05:00
oprofile powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
perf powerpc/perf: Add stalled-cycles events 2013-01-10 17:00:56 +11:00
platforms powerpc/82xx: Use for_each_compatible_node() macro 2013-01-10 17:00:51 +11:00
sysdev powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
xmon powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
Kconfig powerpc: Enable ARCH_USE_BUILTIN_BSWAP 2013-01-10 17:00:54 +11:00
Kconfig.debug
Makefile powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
relocs_check.pl