Revert "sched.h"

This reverts commit 8d128386b96a7ee665adf20ac908ba2276718750.
This commit is contained in:
Adrien Bourmault 2020-02-06 13:32:25 +01:00
parent a57a8ba192
commit f6e07ec33e
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ extern const char *PsPrioClassesNames[];
// Re-scheduling and preemption // Re-scheduling and preemption
// XXX atomic operations // XXX atomic operations
// //
#define PsRequestReSched() do { ++KeCurCPU->needReSched; } while (0) #define PsRequestReSched() (++KeCurCPU->needReSched)
#define PsDisablePreemption() do { ++KeCurCPU->preemptCount; } while (0) #define PsDisablePreemption() (++KeCurCPU->preemptCount)
#define PsEnablePreemption() do { assert(KeCurCPU->preemptCount > 0); \ #define PsEnablePreemption() do { assert(KeCurCPU->preemptCount > 0); \
--KeCurCPU->preemptCount; } while(0) --KeCurCPU->preemptCount; } while(0)