mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Revert "sched.h"
This reverts commit 8d128386b96a7ee665adf20ac908ba2276718750.
This commit is contained in:
parent
a57a8ba192
commit
f6e07ec33e
@ -61,8 +61,8 @@ extern const char *PsPrioClassesNames[];
|
||||
// Re-scheduling and preemption
|
||||
// XXX atomic operations
|
||||
//
|
||||
#define PsRequestReSched() do { ++KeCurCPU->needReSched; } while (0)
|
||||
#define PsDisablePreemption() do { ++KeCurCPU->preemptCount; } while (0)
|
||||
#define PsRequestReSched() (++KeCurCPU->needReSched)
|
||||
#define PsDisablePreemption() (++KeCurCPU->preemptCount)
|
||||
#define PsEnablePreemption() do { assert(KeCurCPU->preemptCount > 0); \
|
||||
--KeCurCPU->preemptCount; } while(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user