Regarding Linux kernel SMP and task switching CPU
William Tambe
tambewilliam at gmail.com
Sun Jul 12 12:24:46 EDT 2020
On Sun, Jul 12, 2020 at 7:00 AM CVS <cvs268 at gmail.com> wrote:
>
> > are there platform specific functions that are called to detect change ?
> What is it that you wish to do with this?
I am doing porting work; I would like to be able to update
mm_struct->context when a task migrates to another CPU.
Another related question to this topic is:
can the same mm_struct be used by two tasks running each on a different CPU ?
if yes, I would probably need to make mm_struct->context an array so
that it can hold information for each CPU.
>
> - Are you thinking of modifying the thread migration logic before a
> thread is migrated?
> - Are you looking to trace such thread migrations across CPUs after they happen?
> - Something else?...
>
> regards
> CVS
More information about the Kernelnewbies
mailing list