diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-11-24 11:26:11 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-11-24 11:26:11 +0100 |
commit | 13c8da5db43ad6d9b8637295ff50ddb66a0af05f (patch) | |
tree | 334417e5a8e9cec4c0576eef4e1dda5804a50825 /lib/smp_processor_id.c | |
parent | a0e169978303ee5873142599c8c9660b2d296243 (diff) | |
parent | 74d862b682f51e45d25b95b1ecf212428a4967b0 (diff) |
Merge branch 'sched/core' into core/mm
Pull the migrate disable mechanics which is a prerequisite for preemptible
kmap_local().
Diffstat (limited to 'lib/smp_processor_id.c')
-rw-r--r-- | lib/smp_processor_id.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 525222e4f409..1c1dbd300325 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -26,6 +26,11 @@ unsigned int check_preemption_disabled(const char *what1, const char *what2) if (current->nr_cpus_allowed == 1) goto out; +#ifdef CONFIG_SMP + if (current->migration_disabled) + goto out; +#endif + /* * It is valid to assume CPU-locality during early bootup: */ |