xref: /openbmc/linux/include/linux/getcpu.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2c08c8205SVojtech Pavlik #ifndef _LINUX_GETCPU_H
3c08c8205SVojtech Pavlik #define _LINUX_GETCPU_H 1
4c08c8205SVojtech Pavlik 
534596dc9SAndi Kleen /* Cache for getcpu() to speed it up. Results might be a short time
6c08c8205SVojtech Pavlik    out of date, but will be faster.
734596dc9SAndi Kleen 
8c08c8205SVojtech Pavlik    User programs should not refer to the contents of this structure.
934596dc9SAndi Kleen    I repeat they should not refer to it. If they do they will break
1034596dc9SAndi Kleen    in future kernels.
1134596dc9SAndi Kleen 
1234596dc9SAndi Kleen    It is only a private cache for vgetcpu(). It will change in future kernels.
13c08c8205SVojtech Pavlik    The user program must store this information per thread (__thread)
14c08c8205SVojtech Pavlik    If you want 100% accurate information pass NULL instead. */
15c08c8205SVojtech Pavlik struct getcpu_cache {
1634596dc9SAndi Kleen 	unsigned long blob[128 / sizeof(long)];
17c08c8205SVojtech Pavlik };
18c08c8205SVojtech Pavlik 
19c08c8205SVojtech Pavlik #endif
20