Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_GETCPU_H
0003 #define _LINUX_GETCPU_H 1
0004 
0005 /* Cache for getcpu() to speed it up. Results might be a short time
0006    out of date, but will be faster.
0007 
0008    User programs should not refer to the contents of this structure.
0009    I repeat they should not refer to it. If they do they will break
0010    in future kernels.
0011 
0012    It is only a private cache for vgetcpu(). It will change in future kernels.
0013    The user program must store this information per thread (__thread)
0014    If you want 100% accurate information pass NULL instead. */
0015 struct getcpu_cache {
0016     unsigned long blob[128 / sizeof(long)];
0017 };
0018 
0019 #endif