]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Per process DSCR + some fixes (try#4)
authorAlexey Kardashevskiy <aik@au1.ibm.com>
Wed, 2 Mar 2011 15:18:48 +0000 (15:18 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 27 Apr 2011 04:18:19 +0000 (14:18 +1000)
commit1675f22db947fb42ba6324145ce921fa1eaab994
treed2236c1e9385baff297f0652c5a22b74f6acb149
parentbfc6dad477f6effa32551310da6ec36b4f611be1
powerpc: Per process DSCR + some fixes (try#4)

The DSCR (aka Data Stream Control Register) is supported on some
server PowerPC chips and allow some control over the prefetch
of data streams.

This patch allows the value to be specified per thread by emulating
the corresponding mfspr and mtspr instructions. Children of such
threads inherit the value. Other threads use a default value that
can be specified in sysfs - /sys/devices/system/cpu/dscr_default.

If a thread starts with non default value in the sysfs entry,
all children threads inherit this non default value even if
the sysfs value is changed later.

Signed-off-by: Alexey Kardashevskiy <aik@au1.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/emulated_ops.h
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/include/asm/processor.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/process.c
arch/powerpc/kernel/sysfs.c
arch/powerpc/kernel/traps.c