Searched hist:b504b6aade0403eaffa9ce51b8207d710705beaf (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/powerpc/kernel/ |
H A D | interrupt_64.S | diff b504b6aade0403eaffa9ce51b8207d710705beaf Sat Mar 25 07:29:02 CDT 2023 Nicholas Piggin <npiggin@gmail.com> powerpc: differentiate kthread from user kernel thread start
Kernel created user threads start similarly to kernel threads in that they call a kernel function after first returning from _switch, so they share ret_from_kernel_thread for this. Kernel threads never return from that function though, whereas user threads often do (although some don't, e.g., IO threads).
Split these startup functions in two, and catch kernel threads that improperly return from their function. This is intended to make the complicated code a little bit easier to understand.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230325122904.2375060-7-npiggin@gmail.com
|
H A D | entry_32.S | diff b504b6aade0403eaffa9ce51b8207d710705beaf Sat Mar 25 07:29:02 CDT 2023 Nicholas Piggin <npiggin@gmail.com> powerpc: differentiate kthread from user kernel thread start
Kernel created user threads start similarly to kernel threads in that they call a kernel function after first returning from _switch, so they share ret_from_kernel_thread for this. Kernel threads never return from that function though, whereas user threads often do (although some don't, e.g., IO threads).
Split these startup functions in two, and catch kernel threads that improperly return from their function. This is intended to make the complicated code a little bit easier to understand.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230325122904.2375060-7-npiggin@gmail.com
|
H A D | process.c | diff b504b6aade0403eaffa9ce51b8207d710705beaf Sat Mar 25 07:29:02 CDT 2023 Nicholas Piggin <npiggin@gmail.com> powerpc: differentiate kthread from user kernel thread start
Kernel created user threads start similarly to kernel threads in that they call a kernel function after first returning from _switch, so they share ret_from_kernel_thread for this. Kernel threads never return from that function though, whereas user threads often do (although some don't, e.g., IO threads).
Split these startup functions in two, and catch kernel threads that improperly return from their function. This is intended to make the complicated code a little bit easier to understand.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230325122904.2375060-7-npiggin@gmail.com
|