runtime/linux/autoconf-rcu_is_watching.c
raw| 1 | #include <linux/rcupdate.h> |
| 2 | |
| 3 | // RHBZ1788662 rcu operations are rejected in idle-cpu contexts. |
| 4 | // |
| 5 | // We need to use rcu_is_watching() where available to skip probes in |
| 6 | // rcu-idle state. |
| 7 | struct context * _stp_runtime_get_context(void); |
| 8 | |
| 9 | struct context * _stp_runtime_get_context(void) |
| 10 | { |
| 11 | if (! rcu_is_watching()) |
| 12 | return 0; |
| 13 | //return rcu_dereference_sched(contexts[smp_processor_id()]); |
| 14 | return (struct context *)0xea7bee75; |
| 15 | } |