1__ppc_yield(3) Library Functions Manual __ppc_yield(3)
2
3
4
6 __ppc_yield, __ppc_mdoio, __ppc_mdoom - Hint the processor to release
7 shared resources
8
10 Standard C library (libc, -lc)
11
13 #include <sys/platform/ppc.h>
14
15 void __ppc_yield(void);
16 void __ppc_mdoio(void);
17 void __ppc_mdoom(void);
18
20 These functions provide hints about the usage of resources that are
21 shared with other processors on the Power architecture. They can be
22 used, for example, if a program waiting on a lock intends to divert the
23 shared resources to be used by other processors.
24
25 __ppc_yield() provides a hint that performance will probably be im‐
26 proved if shared resources dedicated to the executing processor are re‐
27 leased for use by other processors.
28
29 __ppc_mdoio() provides a hint that performance will probably be im‐
30 proved if shared resources dedicated to the executing processor are re‐
31 leased until all outstanding storage accesses to caching-inhibited
32 storage have been completed.
33
34 __ppc_mdoom() provides a hint that performance will probably be im‐
35 proved if shared resources dedicated to the executing processor are re‐
36 leased until all outstanding storage accesses to cacheable storage for
37 which the data is not in the cache have been completed.
38
40 For an explanation of the terms used in this section, see at‐
41 tributes(7).
42
43 ┌────────────────────────────────────────────┬───────────────┬─────────┐
44 │Interface │ Attribute │ Value │
45 ├────────────────────────────────────────────┼───────────────┼─────────┤
46 │__ppc_yield(), __ppc_mdoio(), __ppc_mdoom() │ Thread safety │ MT-Safe │
47 └────────────────────────────────────────────┴───────────────┴─────────┘
48
50 GNU.
51
53 glibc 2.18.
54
56 __ppc_set_ppr_med(3)
57
58 Power ISA, Book II - Section 3.2 ("or" architecture)
59
60
61
62Linux man-pages 6.04 2023-03-30 __ppc_yield(3)