Skip to content

Commit 7e9d8ce

Browse files
committed
stop declaring spinlock on non-smp derivations
1 parent e97e3d2 commit 7e9d8ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/kernel/events.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
//#define DEBUG_SMP
2525

2626
static SMP::Array<Events> managers;
27+
#ifdef INCLUDEOS_SMP_ENABLE
2728
static Spinlock em_lock_;
29+
#endif
2830

2931
Events& Events::get(int cpuid)
3032
{

0 commit comments

Comments
 (0)