summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/delay.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/delay.h b/include/linux/delay.h
index a6ecb34cf547..e23a7c021eeb 100644
--- a/include/linux/delay.h
+++ b/include/linux/delay.h
@@ -52,4 +52,10 @@ static inline void ssleep(unsigned int seconds)
msleep(seconds * 1000);
}
+#ifdef CONFIG_PREEMPT_RT_FULL
+# define cpu_chill() msleep(1)
+#else
+# define cpu_chill() cpu_relax()
+#endif
+
#endif /* defined(_LINUX_DELAY_H) */