2016-12-27 20:06:53 +00:00
|
|
|
.\" Copyright (c) 2015, 2016 IBM Corporation.
|
2015-08-06 12:03:30 +00:00
|
|
|
.\"
|
|
|
|
.\" %%%LICENSE_START(VERBATIM)
|
|
|
|
.\" Permission is granted to make and distribute verbatim copies of this
|
|
|
|
.\" manual provided the copyright notice and this permission notice are
|
|
|
|
.\" preserved on all copies.
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to copy and distribute modified versions of
|
|
|
|
.\" this manual under the conditions for verbatim copying, provided that
|
|
|
|
.\" the entire resulting derived work is distributed under the terms of
|
|
|
|
.\" a permission notice identical to this one.
|
|
|
|
.\"
|
|
|
|
.\" Since the Linux kernel and libraries are constantly changing, this
|
|
|
|
.\" manual page may be incorrect or out-of-date. The author(s) assume.
|
|
|
|
.\" no responsibility for errors or omissions, or for damages resulting.
|
|
|
|
.\" from the use of the information contained herein. The author(s) may.
|
|
|
|
.\" not have taken the same level of care in the production of this.
|
|
|
|
.\" manual, which is licensed free of charge, as they might when working.
|
|
|
|
.\" professionally.
|
|
|
|
.\"
|
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
|
|
|
.\" %%%LICENSE_END
|
|
|
|
.\"
|
add_key.2, execve.2, fork.2, fsync.2, getrandom.2, getrlimit.2, getxattr.2, inotify_add_watch.2, ioctl.2, ioctl_fat.2, kcmp.2, keyctl.2, link.2, listxattr.2, lseek.2, madvise.2, mincore.2, mlock.2, nanosleep.2, poll.2, posix_fadvise.2, read.2, readv.2, recv.2, request_key.2, select.2, send.2, setxattr.2, sigaction.2, stat.2, statfs.2, syscall.2, tkill.2, truncate.2, unlink.2, vfork.2, write.2, __ppc_set_ppr_med.3, aio_suspend.3, backtrace.3, bcmp.3, bcopy.3, bzero.3, exec.3, fopen.3, fts.3, ftw.3, getline.3, getmntent.3, getopt.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, memset.3, random.3, random_r.3, resolver.3, scandir.3, scanf.3, sem_post.3, sem_wait.3, setjmp.3, sleep.3, strerror.3, strverscmp.3, system.3, random.4, core.5, intro.5, resolv.conf.5, slabinfo.5, environ.7, ip.7, keyrings.7, man.7, persistent-keyring.7, pipe.7, process-keyring.7, random.7, session-keyring.7, signal-safety.7, signal.7, thread-keyring.7, unix.7, user-keyring.7, user-session-keyring.7, ld.so.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-03-13 20:14:49 +00:00
|
|
|
.TH __PPC_SET_PPR_MED 3 2017-03-13 "GNU C Library" "Linux\
|
2015-08-06 12:03:30 +00:00
|
|
|
Programmer's Manual"
|
|
|
|
.SH NAME
|
2015-10-08 20:16:38 +00:00
|
|
|
__ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, __ppc_set_ppr_med_low, __ppc_set_ppr_med_high \-
|
2015-08-06 12:03:30 +00:00
|
|
|
Set the Program Priority Register
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <sys/platform/ppc.h>
|
|
|
|
.sp
|
|
|
|
.B void __ppc_set_ppr_med(void);
|
|
|
|
.br
|
2015-10-08 20:16:38 +00:00
|
|
|
.B void __ppc_set_ppr_very_low(void);
|
|
|
|
.br
|
2015-08-06 12:03:30 +00:00
|
|
|
.B void __ppc_set_ppr_low(void);
|
|
|
|
.br
|
|
|
|
.B void __ppc_set_ppr_med_low(void);
|
2015-10-08 20:16:38 +00:00
|
|
|
.br
|
|
|
|
.B void __ppc_set_ppr_med_high(void);
|
2015-08-06 12:03:30 +00:00
|
|
|
.SH DESCRIPTION
|
2015-08-06 12:31:27 +00:00
|
|
|
These functions provide access to the
|
2015-08-06 12:03:30 +00:00
|
|
|
.I Program Priority Register
|
2015-08-06 12:31:27 +00:00
|
|
|
(PPR) on the Power architecture.
|
2015-08-06 12:03:30 +00:00
|
|
|
.P
|
|
|
|
The PPR is a 64-bit register that controls the program's priority.
|
|
|
|
By adjusting the PPR value the programmer may improve system
|
2015-08-06 12:31:27 +00:00
|
|
|
throughput by causing system resources to be used more
|
2015-08-06 12:03:30 +00:00
|
|
|
efficiently, especially in contention situations.
|
2015-10-08 20:21:26 +00:00
|
|
|
The available unprivileged states are covered by the following functions:
|
2015-08-06 12:31:27 +00:00
|
|
|
.IP * 3
|
2015-08-06 12:03:30 +00:00
|
|
|
.BR __ppc_set_ppr_med ()
|
2015-08-06 12:31:27 +00:00
|
|
|
sets the Program Priority Register value to
|
|
|
|
.IR medium
|
|
|
|
(default).
|
|
|
|
.IP *
|
2015-10-08 20:16:38 +00:00
|
|
|
.BR __ppc_set_ppr_very_low ()
|
|
|
|
sets the Program Priority Register value to
|
|
|
|
.IR "very low" .
|
|
|
|
.IP *
|
2015-08-06 12:03:30 +00:00
|
|
|
.BR __ppc_set_ppr_low ()
|
2015-08-06 12:31:27 +00:00
|
|
|
sets the Program Priority Register value to
|
|
|
|
.IR low .
|
|
|
|
.IP *
|
2015-08-06 12:03:30 +00:00
|
|
|
.BR __ppc_set_ppr_med_low ()
|
2015-08-06 12:31:27 +00:00
|
|
|
sets the Program Priority Register value to
|
|
|
|
.IR "medium low" .
|
2015-10-08 20:16:38 +00:00
|
|
|
.P
|
|
|
|
The privileged state
|
|
|
|
.IR "medium high"
|
|
|
|
may also be set during certain time intervals by problem-state (unprivileged)
|
|
|
|
programs, with the following function:
|
|
|
|
.IP * 3
|
|
|
|
.BR __ppc_set_ppr_med_high ()
|
|
|
|
sets the Program Priority to
|
|
|
|
.IR "medium high" .
|
|
|
|
.P
|
|
|
|
If the program priority is medium high when the time interval expires or if an
|
|
|
|
attempt is made to set the priority to medium high when it is not allowed, the
|
|
|
|
priority is set to medium.
|
2015-08-06 12:03:30 +00:00
|
|
|
.SH VERSIONS
|
2015-10-08 20:16:38 +00:00
|
|
|
The functions
|
|
|
|
.BR __ppc_set_ppr_med (),
|
|
|
|
.BR __ppc_set_ppr_low ()
|
|
|
|
and
|
|
|
|
.BR __ppc_set_ppr_med_low ()
|
|
|
|
are provided by glibc since version 2.18.
|
|
|
|
The functions
|
|
|
|
.BR __ppc_set_ppr_very_low ()
|
|
|
|
and
|
|
|
|
.BR __ppc_set_ppr_med_high ()
|
|
|
|
first appeared in glibc in version 2.23.
|
2015-08-06 12:03:30 +00:00
|
|
|
.SH ATTRIBUTES
|
|
|
|
For an explanation of the terms used in this section, see
|
|
|
|
.BR attributes (7).
|
|
|
|
.ad l
|
|
|
|
.TS
|
|
|
|
allbox;
|
2015-10-08 20:19:47 +00:00
|
|
|
lbw26 lb lb
|
2015-08-06 12:03:30 +00:00
|
|
|
l l l.
|
|
|
|
Interface Attribute Value
|
|
|
|
T{
|
|
|
|
.BR __ppc_set_ppr_med (),
|
2015-10-08 20:19:47 +00:00
|
|
|
.br
|
2015-10-08 20:16:38 +00:00
|
|
|
.BR __ppc_set_ppr_very_low (),
|
2015-10-08 20:19:47 +00:00
|
|
|
.br
|
2015-08-06 12:03:30 +00:00
|
|
|
.BR __ppc_set_ppr_low (),
|
2015-10-08 20:19:47 +00:00
|
|
|
.br
|
2015-10-08 20:16:38 +00:00
|
|
|
.BR __ppc_set_ppr_med_low (),
|
2015-10-08 20:19:47 +00:00
|
|
|
.br
|
2015-10-08 20:16:38 +00:00
|
|
|
.BR __ppc_set_ppr_med_high ()
|
2015-08-06 12:03:30 +00:00
|
|
|
T} Thread safety MT-Safe
|
|
|
|
.TE
|
|
|
|
.ad
|
|
|
|
.SH CONFORMING TO
|
|
|
|
These functions are nonstandard GNU extensions.
|
2016-12-28 10:44:41 +00:00
|
|
|
.SH NOTES
|
2016-12-27 20:06:53 +00:00
|
|
|
The functions
|
|
|
|
.BR __ppc_set_ppr_very_low ()
|
|
|
|
and
|
|
|
|
.BR __ppc_set_ppr_med_high ()
|
|
|
|
will be defined by
|
|
|
|
.I <sys/platform/ppc.h>
|
|
|
|
if
|
|
|
|
.B _ARCH_PWR8
|
|
|
|
is defined.
|
|
|
|
Availability of these functions can be tested using
|
|
|
|
.BR "#ifdef _ARCH_PWR8" .
|
2015-08-06 12:03:30 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR __ppc_yield (3)
|
2015-08-06 12:31:27 +00:00
|
|
|
|
|
|
|
.IR "Power ISA, Book\ II - Section\ 3.1 (Program Priority Registers)"
|