add __read_only for non-init related usage
Signed-off-by: anupritaisno1 <www.anuprita804@gmail.com>
This commit is contained in:
parent
1f63f26cd2
commit
a124bf732b
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@
|
||||||
#define __ro_after_init __section(".data..ro_after_init")
|
#define __ro_after_init __section(".data..ro_after_init")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define __read_only __ro_after_init
|
||||||
|
|
||||||
#ifndef ____cacheline_aligned
|
#ifndef ____cacheline_aligned
|
||||||
#define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
|
#define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue