|
@@ -158,7 +158,9 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPTIMIZER_HIDE_VAR
|
|
#ifndef OPTIMIZER_HIDE_VAR
|
|
|
-#define OPTIMIZER_HIDE_VAR(var) barrier()
|
|
|
|
|
|
|
+/* Make the optimizer believe the variable can be manipulated arbitrarily. */
|
|
|
|
|
+#define OPTIMIZER_HIDE_VAR(var) \
|
|
|
|
|
+ __asm__ ("" : "=r" (var) : "0" (var))
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
/* Not-quite-unique ID. */
|
|
/* Not-quite-unique ID. */
|