]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/__ppc_set_ppr_med.3
man*/: ffix (un-bracket tables)
[thirdparty/man-pages.git] / man3 / __ppc_set_ppr_med.3
CommitLineData
a1eaacb1 1'\" t
831f5b9a 2.\" Copyright (c) 2015, 2016 IBM Corporation.
fff0e08c 3.\"
5fbde956 4.\" SPDX-License-Identifier: Linux-man-pages-copyleft
fff0e08c 5.\"
4c1c5274 6.TH __ppc_set_ppr_med 3 (date) "Linux man-pages (unreleased)"
fff0e08c
GG
7Programmer's Manual"
8.SH NAME
15f0b7af
AC
9__ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low,
10__ppc_set_ppr_med_low, __ppc_set_ppr_med_high \-
fff0e08c 11Set the Program Priority Register
69ff9005
AC
12.SH LIBRARY
13Standard C library
8fc3b2cf 14.RI ( libc ", " \-lc )
fff0e08c 15.SH SYNOPSIS
c7db92b9 16.nf
fff0e08c 17.B #include <sys/platform/ppc.h>
68e4db0a 18.PP
fff0e08c 19.B void __ppc_set_ppr_med(void);
eb6b6909 20.B void __ppc_set_ppr_very_low(void);
fff0e08c 21.B void __ppc_set_ppr_low(void);
fff0e08c 22.B void __ppc_set_ppr_med_low(void);
eb6b6909 23.B void __ppc_set_ppr_med_high(void);
c7db92b9 24.fi
fff0e08c 25.SH DESCRIPTION
d83d1e1c 26These functions provide access to the
fff0e08c 27.I Program Priority Register
d83d1e1c 28(PPR) on the Power architecture.
11ac5b51 29.PP
fff0e08c
GG
30The PPR is a 64-bit register that controls the program's priority.
31By adjusting the PPR value the programmer may improve system
d83d1e1c 32throughput by causing system resources to be used more
fff0e08c 33efficiently, especially in contention situations.
42f014d3 34The available unprivileged states are covered by the following functions:
4279e42d 35.TP
fff0e08c 36.BR __ppc_set_ppr_med ()
d83d1e1c 37sets the Program Priority Register value to
1ae6b2c7 38.I medium
d83d1e1c 39(default).
4279e42d 40.TP
eb6b6909
GG
41.BR __ppc_set_ppr_very_low ()
42sets the Program Priority Register value to
43.IR "very low" .
4279e42d 44.TP
fff0e08c 45.BR __ppc_set_ppr_low ()
d83d1e1c
MK
46sets the Program Priority Register value to
47.IR low .
4279e42d 48.TP
fff0e08c 49.BR __ppc_set_ppr_med_low ()
d83d1e1c
MK
50sets the Program Priority Register value to
51.IR "medium low" .
11ac5b51 52.PP
eb6b6909 53The privileged state
1ae6b2c7 54.I medium high
eb6b6909
GG
55may also be set during certain time intervals by problem-state (unprivileged)
56programs, with the following function:
4279e42d 57.TP
eb6b6909
GG
58.BR __ppc_set_ppr_med_high ()
59sets the Program Priority to
60.IR "medium high" .
11ac5b51 61.PP
eb6b6909
GG
62If the program priority is medium high when the time interval expires or if an
63attempt is made to set the priority to medium high when it is not allowed, the
64priority is set to medium.
fff0e08c
GG
65.SH ATTRIBUTES
66For an explanation of the terms used in this section, see
67.BR attributes (7).
fff0e08c
GG
68.TS
69allbox;
c466875e 70lbx lb lb
fff0e08c
GG
71l l l.
72Interface Attribute Value
73T{
9e54434e
BR
74.na
75.nh
fff0e08c 76.BR __ppc_set_ppr_med (),
eb6b6909 77.BR __ppc_set_ppr_very_low (),
fff0e08c 78.BR __ppc_set_ppr_low (),
eb6b6909
GG
79.BR __ppc_set_ppr_med_low (),
80.BR __ppc_set_ppr_med_high ()
fff0e08c
GG
81T} Thread safety MT-Safe
82.TE
c466875e 83.sp 1
4131356c
AC
84.SH STANDARDS
85GNU.
86.SH HISTORY
87.TP
88.BR __ppc_set_ppr_med ()
89.TQ
90.BR __ppc_set_ppr_low ()
91.TQ
196224f7 92.BR __ppc_set_ppr_med_low ()
4131356c
AC
93glibc 2.18.
94.TP
196224f7 95.BR __ppc_set_ppr_very_low ()
4131356c 96.TQ
196224f7 97.BR __ppc_set_ppr_med_high ()
4131356c 98glibc 2.23.
49a93479 99.SH NOTES
831f5b9a
WSM
100The functions
101.BR __ppc_set_ppr_very_low ()
102and
103.BR __ppc_set_ppr_med_high ()
104will be defined by
105.I <sys/platform/ppc.h>
106if
107.B _ARCH_PWR8
108is defined.
109Availability of these functions can be tested using
110.BR "#ifdef _ARCH_PWR8" .
fff0e08c
GG
111.SH SEE ALSO
112.BR __ppc_yield (3)
847e0d88 113.PP
1ae6b2c7 114.I Power ISA, Book\~II - Section\ 3.1 (Program Priority Registers)