blob: c7372d7a97be34a22874f38c388284640ae29512 [file] [log] [blame]
Vojtech Pavlikc08c8202006-09-26 10:52:28 +02001#ifndef _LINUX_GETCPU_H
2#define _LINUX_GETCPU_H 1
3
Andi Kleen34596dc2006-09-30 01:47:55 +02004/* Cache for getcpu() to speed it up. Results might be a short time
Vojtech Pavlikc08c8202006-09-26 10:52:28 +02005 out of date, but will be faster.
Andi Kleen34596dc2006-09-30 01:47:55 +02006
Vojtech Pavlikc08c8202006-09-26 10:52:28 +02007 User programs should not refer to the contents of this structure.
Andi Kleen34596dc2006-09-30 01:47:55 +02008 I repeat they should not refer to it. If they do they will break
9 in future kernels.
10
11 It is only a private cache for vgetcpu(). It will change in future kernels.
Vojtech Pavlikc08c8202006-09-26 10:52:28 +020012 The user program must store this information per thread (__thread)
13 If you want 100% accurate information pass NULL instead. */
14struct getcpu_cache {
Andi Kleen34596dc2006-09-30 01:47:55 +020015 unsigned long blob[128 / sizeof(long)];
Vojtech Pavlikc08c8202006-09-26 10:52:28 +020016};
17
18#endif