diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel_iface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel_iface.c b/src/kernel_iface.c index 34767ae..8ab42de 100644 --- a/src/kernel_iface.c +++ b/src/kernel_iface.c | |||
@@ -84,6 +84,10 @@ void exit_np_trace(void) | |||
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
87 | int requested_to_preempt(void) | ||
88 | { | ||
89 | return (likely(ctrl_page != NULL) && ctrl_page->sched.np.preempt); | ||
90 | } | ||
87 | 91 | ||
88 | /* init and return a ptr to the control page for | 92 | /* init and return a ptr to the control page for |
89 | * preemption and migration overhead analysis | 93 | * preemption and migration overhead analysis |