getcpu.h 524 B

12345678910111213141516
  1. #ifndef _LINUX_GETCPU_H
  2. #define _LINUX_GETCPU_H 1
  3. /* Cache for getcpu() to speed it up. Results might be upto a jiffie
  4. out of date, but will be faster.
  5. User programs should not refer to the contents of this structure.
  6. It is only a cache for vgetcpu(). It might change in future kernels.
  7. The user program must store this information per thread (__thread)
  8. If you want 100% accurate information pass NULL instead. */
  9. struct getcpu_cache {
  10. unsigned long t0;
  11. unsigned long t1;
  12. unsigned long res[4];
  13. };
  14. #endif