2015-08-06 12:03:30 +00:00
|
|
|
.\" Copyright (c) 2015, IBM Corporation.
|
|
|
|
.\"
|
|
|
|
.\" %%%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
|
|
|
|
.\"
|
mremap.2, open.2, perf_event_open.2, prctl.2, ptrace.2, reboot.2, seccomp.2, signalfd.2, syscalls.2, __ppc_set_ppr_med.3, daemon.3, dirfd.3, fgetgrent.3, fgetpwent.3, getauxval.3, getspnam.3, mallinfo.3, mallopt.3, posix_fallocate.3, termios.3, tty_ioctl.4, core.5, nsswitch.conf.5, proc.5, aio.7, capabilities.7, path_resolution.7, pipe.7, rtld-audit.7, signal.7, tcp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-12-05 09:43:33 +00:00
|
|
|
.TH __PPC_SET_PPR_MED 3 2015-12-05 "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.
|
|
|
|
.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)"
|