Processes and threads are fundamental abstractions in the operating system. To support processes and threads, the OS uses two key data structures:
thread_info; as well as a host of auxiliary functions for managing processes and threads in the system.
arch/arm/include/asm/thread_info.h file declares the
include/linux/sched.h file declares the
task_struct structure, along with many process management functions.
arch/arm/include/asm/switch_to.h file defines an ARM architecture
specific macro for the
process switch routine, and the
arch/arm/kernel/entry-armv.S file implements the
assembly level process switch routine that is used by that macro.