From 3c9370f7b6bffd697c9907a7139e9df5b0d4b9df Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 20 Nov 2023 10:14:11 +0000 Subject: [PATCH] enable OTG_EN_OC_GPIO0_C2 vcc3v3_lcd0_n gpio --- kernel/lib/smp_processor_id.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/kernel/lib/smp_processor_id.c b/kernel/lib/smp_processor_id.c index 85925aa..2e73985 100644 --- a/kernel/lib/smp_processor_id.c +++ b/kernel/lib/smp_processor_id.c @@ -22,7 +22,12 @@ * Kernel threads bound to a single CPU can safely use * smp_processor_id(): */ - if (cpumask_equal(¤t->cpus_allowed, cpumask_of(this_cpu))) +#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; /* -- Gitblit v1.6.2