aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index c8bd2daf95ec..98115d9d04da 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -44,6 +44,8 @@ extern void __chk_io_ptr(const volatile void __iomem *);
44# error Sorry, your compiler is too old/not recognized. 44# error Sorry, your compiler is too old/not recognized.
45#endif 45#endif
46 46
47#define notrace __attribute__((no_instrument_function))
48
47/* Intel compiler defines __GNUC__. So we will overwrite implementations 49/* Intel compiler defines __GNUC__. So we will overwrite implementations
48 * coming from above header files here 50 * coming from above header files here
49 */ 51 */
@@ -190,7 +192,9 @@ extern void __chk_io_ptr(const volatile void __iomem *);
190 * ACCESS_ONCE() in different C statements. 192 * ACCESS_ONCE() in different C statements.
191 * 193 *
192 * This macro does absolutely -nothing- to prevent the CPU from reordering, 194 * This macro does absolutely -nothing- to prevent the CPU from reordering,
193 * merging, or refetching absolutely anything at any time. 195 * merging, or refetching absolutely anything at any time. Its main intended
196 * use is to mediate communication between process-level code and irq/NMI
197 * handlers, all running on the same CPU.
194 */ 198 */
195#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) 199#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
196 200