]>
Commit | Line | Data |
---|---|---|
36b53105 GG |
1 | .\" Copyright (c) 2015, IBM Corporation. |
2 | .\" | |
5fbde956 | 3 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
36b53105 | 4 | .\" |
4c1c5274 | 5 | .TH __ppc_yield 3 (date) "Linux man-pages (unreleased)" |
36b53105 GG |
6 | .SH NAME |
7 | __ppc_yield, __ppc_mdoio, __ppc_mdoom \- | |
8 | Hint the processor to release shared resources | |
2e8ff57c AC |
9 | .SH LIBRARY |
10 | Standard C library | |
8fc3b2cf | 11 | .RI ( libc ", " \-lc ) |
36b53105 | 12 | .SH SYNOPSIS |
c7db92b9 | 13 | .nf |
36b53105 | 14 | .B #include <sys/platform/ppc.h> |
68e4db0a | 15 | .PP |
36b53105 | 16 | .B void __ppc_yield(void); |
36b53105 | 17 | .B void __ppc_mdoio(void); |
36b53105 | 18 | .B void __ppc_mdoom(void); |
c7db92b9 | 19 | .fi |
36b53105 | 20 | .SH DESCRIPTION |
2cd276f3 | 21 | These functions |
36b53105 | 22 | provide hints about the usage of resources that are shared with other |
2cd276f3 | 23 | processors on the Power architecture. |
36b53105 GG |
24 | They can be used, for example, if a program waiting on a lock intends |
25 | to divert the shared resources to be used by other processors. | |
11ac5b51 | 26 | .PP |
36b53105 GG |
27 | .BR __ppc_yield () |
28 | provides a hint that performance will probably be improved if shared | |
29 | resources dedicated to the executing processor are released for use by | |
30 | other processors. | |
11ac5b51 | 31 | .PP |
36b53105 GG |
32 | .BR __ppc_mdoio () |
33 | provides a hint that performance will probably be improved if shared | |
34 | resources dedicated to the executing processor are released until all | |
35 | outstanding storage accesses to caching-inhibited storage have been | |
36 | completed. | |
11ac5b51 | 37 | .PP |
36b53105 GG |
38 | .BR __ppc_mdoom () |
39 | provides a hint that performance will probably be improved if shared | |
40 | resources dedicated to the executing processor are released until all | |
41 | outstanding storage accesses to cacheable storage for which the data | |
42 | is not in the cache have been completed. | |
43 | .SH VERSIONS | |
2cd276f3 | 44 | These functions first appeared in glibc in version 2.18. |
36b53105 GG |
45 | .SH ATTRIBUTES |
46 | For an explanation of the terms used in this section, see | |
47 | .BR attributes (7). | |
48 | .ad l | |
c466875e | 49 | .nh |
36b53105 GG |
50 | .TS |
51 | allbox; | |
c466875e | 52 | lbx lb lb |
36b53105 GG |
53 | l l l. |
54 | Interface Attribute Value | |
55 | T{ | |
56 | .BR __ppc_yield (), | |
57 | .BR __ppc_mdoio (), | |
58 | .BR __ppc_mdoom () | |
59 | T} Thread safety MT-Safe | |
60 | .TE | |
c466875e | 61 | .hy |
36b53105 | 62 | .ad |
c466875e | 63 | .sp 1 |
3113c7f3 | 64 | .SH STANDARDS |
36b53105 GG |
65 | These functions are nonstandard GNU extensions. |
66 | .SH SEE ALSO | |
67 | .BR __ppc_set_ppr_med (3) | |
847e0d88 | 68 | .PP |
775cca5a | 69 | .I Power ISA, Book\~II - Section\~3.2 ("or" architecture) |