Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sched: add simple CPU task execution synchronization barrier
All AP CPUs after empting their task_queue get into blocked state, which makes run_tasks() wait on them until they get unblocked. The BSP is never waited on as it is supposed to unblock the AP CPUs. After an unblock, run_tasks() sets the CPU into unfinished state, before executing any tasks from the task_queue. That way BSP controls when all APs start executing their tasks and when they are finished with it. Signed-off-by: Pawel Wieczorkiewicz <wipawel@grsecurity.net>