diff options
author | Peter Zijlstra <[email protected]> | 2013-08-14 14:55:46 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-09-25 14:07:52 +0200 |
commit | 01028747559ac6c6f642a7bbd2875cc4f66b2feb (patch) | |
tree | 3672a4ca3409cae40d5c7338ad9bfa590045dcbc /lib/mpi/mpi-internal.h | |
parent | a787870924dbd6f321661e06d4ec1c7a408c9ccf (diff) |
sched: Create more preempt_count accessors
We need a few special preempt_count accessors:
- task_preempt_count() for when we're interested in the preemption
count of another (non-running) task.
- init_task_preempt_count() for properly initializing the preemption
count.
- init_idle_preempt_count() a special case of the above for the idle
threads.
With these no generic code ever touches thread_info::preempt_count
anymore and architectures could choose to remove it.
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions