diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-05-24 13:29:30 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-05-24 13:29:30 -0500 |
commit | d116b7c414c8239b677e341ac517745db689ac2d (patch) | |
tree | a019a5bc401ad70db2b5991555488ce85193fb03 /manual/platform.texi | |
parent | e96e37676f0b3dd2a7c42898bbf9aabb90f91d75 (diff) | |
download | glibc-d116b7c414c8239b677e341ac517745db689ac2d.tar glibc-d116b7c414c8239b677e341ac517745db689ac2d.tar.gz glibc-d116b7c414c8239b677e341ac517745db689ac2d.tar.bz2 glibc-d116b7c414c8239b677e341ac517745db689ac2d.zip |
PowerPC: Program Priority Register support
This patch add inline functions to change the Program Priority Register
from ISA 2.05.
Diffstat (limited to 'manual/platform.texi')
-rw-r--r-- | manual/platform.texi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manual/platform.texi b/manual/platform.texi index 316b1f1f2d..f1a40d63a4 100644 --- a/manual/platform.texi +++ b/manual/platform.texi @@ -57,4 +57,24 @@ Provide a hint that performance will probably be improved if shared resources dedicated to the executing processor are released until all outstanding storage accesses to cacheable storage for which the data is not in the cache have been completed. + +@deftypefun {void} __ppc_set_ppr_med (void) +Set the Program Priority Register to medium value (default). + +The @dfn{Program Priority Register} (PPR) is a 64-bit register that controls +the program's priority. By adjusting the PPR value the programmer may +improve system throughput by causing the system resources to be used +more efficiently, especially in contention situations. +The three unprivileged states available are covered by the functions +@code{__ppc_set_ppr_med} (medium -- default), @code{__ppc_set_ppc_low} (low) +and @code{__ppc_set_ppc_med_low} (medium low). More information +available in @cite{Power ISA 2.06b - Book II - Section 3.1}. +@end deftypefun + +@deftypefun {void} __ppc_set_ppr_low (void) +Set the Program Priority Register to low value. +@end deftypefun + +@deftypefun {void} __ppc_set_ppr_med_low (void) +Set the Program Priority Register to medium low value. @end deftypefun |