Per process DSCR + some fixes (try#4)
Alexey Kardashevskiy
aik at au1.ibm.com
Thu Mar 3 12:18:48 EST 2011
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 at au1.ibm.com>
--
Alexey Kardashevskiy
IBM OzLabs, LTC Team
e-mail/sametime: aik at au1.ibm.com
notes: Alexey Kardashevskiy/Australia/IBM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dscr.2.patch
Type: text/x-patch
Size: 7077 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20110303/faa45000/attachment.bin>
More information about the Linuxppc-dev
mailing list