Message ID | 20230202215625.3248306-3-usama.arif@bytedance.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Parallel CPU bringup for x86_64 | expand |
On Thu, Feb 02 2023 at 21:56, Usama Arif wrote: > If the architecture code is to register its new pre-bringup states with > the cpuhp core, having a special-case wrapper to pass extra arguments is > non-trivial and it's easier just to let the arch register its function > pointer to be invoked with the standard API. > > Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Same issue vs. the SOB chain. Other than that: Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
On Tue, Feb 07, 2023 at 12:33:03AM +0100, Thomas Gleixner wrote: > On Thu, Feb 02 2023 at 21:56, Usama Arif wrote: > > If the architecture code is to register its new pre-bringup states with > > the cpuhp core, having a special-case wrapper to pass extra arguments is > > non-trivial and it's easier just to let the arch register its function > > pointer to be invoked with the standard API. > > > > Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> > > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> > > Same issue vs. the SOB chain. > > Other than that: > > Reviewed-by: Thomas Gleixner <tglx@linutronix.de> I pulled David's earlier version of this series into -rcu strictly for testing purposes, so perhaps Usama pulled the series from my repo. I don't have any record of doing anything more than test that series, so dropping my SoB entirely makes the most sense here. Thanx, Paul
diff --git a/include/linux/smpboot.h b/include/linux/smpboot.h index 9d1bc65d226c..3862addcaa34 100644 --- a/include/linux/smpboot.h +++ b/include/linux/smpboot.h @@ -5,6 +5,13 @@ #include <linux/types.h> struct task_struct; + +#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD +struct task_struct *idle_thread_get(unsigned int cpu); +#else +static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } +#endif + /* Cookie handed to the thread_fn*/ struct smpboot_thread_data; diff --git a/kernel/smpboot.h b/kernel/smpboot.h index 34dd3d7ba40b..60c609318ad6 100644 --- a/kernel/smpboot.h +++ b/kernel/smpboot.h @@ -5,11 +5,9 @@ struct task_struct; #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD -struct task_struct *idle_thread_get(unsigned int cpu); void idle_thread_set_boot_cpu(void); void idle_threads_init(void); #else -static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } static inline void idle_thread_set_boot_cpu(void) { } static inline void idle_threads_init(void) { } #endif