Message ID | 20200117174131.893547195@goodmis.org |
---|---|
State | New |
Headers | show |
Series | [RT,01/32] i2c: exynos5: Remove IRQF_ONESHOT | expand |
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 0c80992aa337..2e7398534b66 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -22,8 +22,10 @@ notrace static unsigned int check_preemption_disabled(const char *what1, * Kernel threads bound to a single CPU can safely use * smp_processor_id(): */ +#if defined(CONFIG_PREEMPT_RT_BASE) && (defined(CONFIG_SMP) || defined(CONFIG_SCHED_DEBUG)) if (current->migrate_disable) goto out; +#endif if (current->nr_cpus_allowed == 1) goto out;