Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 624 → Rev 625

/kernel/trunk/generic/include/synch/spinlock.h
32,6 → 32,7
#include <arch/types.h>
#include <typedefs.h>
#include <preemption.h>
#include <arch/atomic.h>
 
#ifdef CONFIG_SMP
struct spinlock {
38,7 → 39,7
#ifdef CONFIG_DEBUG_SPINLOCK
char *name;
#endif
int val;
atomic_t val;
};
 
/*
55,12 → 56,12
#define SPINLOCK_INITIALIZE(slname) \
spinlock_t slname = { \
.name = #slname, \
.val = 0 \
.val = { 0 } \
}
#else
#define SPINLOCK_INITIALIZE(slname) \
spinlock_t slname = { \
.val = 0 \
.val = { 0 } \
}
#endif