Re: [PATCH v6 13/25] x86: mp: Allow running functions on multiple CPUs

2020-07-19 Thread Bin Meng
On Fri, Jul 17, 2020 at 10:49 PM Simon Glass wrote: > > Add a way to run a function on a selection of CPUs. This supports either > a single CPU, all CPUs, just the main CPU or just the 'APs', in Intel > terminology. > > It works by writing into a mailbox and then waiting for the CPUs to notice > i

[PATCH v6 13/25] x86: mp: Allow running functions on multiple CPUs

2020-07-17 Thread Simon Glass
Add a way to run a function on a selection of CPUs. This supports either a single CPU, all CPUs, just the main CPU or just the 'APs', in Intel terminology. It works by writing into a mailbox and then waiting for the CPUs to notice it, take action and indicate they are done. When SMP is not yet en