Subversion Repositories Kolibri OS

Rev

Rev 5270 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5270 Rev 7143
Line 10... Line 10...
10
 
10
 
11
#ifndef SMP_CACHE_BYTES
11
#ifndef SMP_CACHE_BYTES
12
#define SMP_CACHE_BYTES L1_CACHE_BYTES
12
#define SMP_CACHE_BYTES L1_CACHE_BYTES
Line -... Line 13...
-
 
13
#endif
-
 
14
 
-
 
15
/*
-
 
16
 * __read_mostly is used to keep rarely changing variables out of frequently
-
 
17
 * updated cachelines. If an architecture doesn't support it, ignore the
13
#endif
18
 * hint.
14
 
19
 */
15
#ifndef __read_mostly
20
#ifndef __read_mostly
Line -... Line 21...
-
 
21
#define __read_mostly
-
 
22
#endif
-
 
23
 
-
 
24
/*
-
 
25
 * __ro_after_init is used to mark things that are read-only after init (i.e.
-
 
26
 * after mark_rodata_ro() has been called). These are effectively read-only,
-
 
27
 * but may get written to during init, so can't live in .rodata (via "const").
-
 
28
 */
-
 
29
#ifndef __ro_after_init
16
#define __read_mostly
30
#define __ro_after_init __attribute__((__section__(".data..ro_after_init")))
17
#endif
31
#endif
18
 
32
 
Line 19... Line 33...
19
#ifndef ____cacheline_aligned
33
#ifndef ____cacheline_aligned