Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sched: Add API to migrate the current process to a given cpumask
There are some chunks of code in the kernel running in process context where it may be helpful to run the code on a specific set of CPUs, such as when reading some CPU-intensive procfs files. This is especially useful when the code in question must run within the context of the current process (so kthreads cannot be used). Add an API to make this possible, which consists of the following: sched_migrate_to_cpumask_start(): @old_mask: pointer to output the current task's old cpumask @DesT: pointer to a cpumask the current task should be moved to sched_migrate_to_cpumask_end(): @old_mask: pointer to the old cpumask generated earlier @DesT: pointer to the dest cpumask provided earlier Change-Id: I7e1bae7adaed1855c20f21dfc4aa04ef58c936ee Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com> Signed-off-by: Santhosh <santhosh.user.why.red@gmail.com>
- Loading branch information