scheduler: Use sequential locks instead of atomic 64 bit access

This commit is contained in:
Pawel Dziepak
2013-12-20 02:18:44 +01:00
parent b258298c70
commit ad6b9a1df8
5 changed files with 25 additions and 7 deletions
+3 -3
View File
@@ -59,9 +59,9 @@ typedef struct {
} seqlock;
#define B_SEQLOCK_INITIALIZER { B_SPINLOCK_INITIALIZER, 0 }
#define B_INITIALIZE_SEQLOCK(seqlock) do { \
B_INITIALIZE_SPINLOCK((seqlock)->lock); \
(seqlock)->count = 0; \
#define B_INITIALIZE_SEQLOCK(seqlock) do { \
B_INITIALIZE_SPINLOCK(&(seqlock)->lock); \
(seqlock)->count = 0; \
} while (false)
/* interrupt handling support for device drivers */