提交 63e4719f 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

More merge conflicts..

#define __padout__ char __padout[0] __attribute__((aligned(CACHELINE)))
#define __mpalign__ __attribute__((aligned(CACHELINE)))
#define __noret__ __attribute__((noreturn))
static inline void
barrier(void)
{
__asm volatile("" ::: "memory");
}
#define barrier() __asm volatile("" ::: "memory")
......@@ -21,7 +21,6 @@
#define VERIFYFREE LOCKSTAT
#define ALLOC_MEMSET 1
#define KSHAREDSIZE (32 << 10)
#define WQENABLE 1
#define WQSHIFT 4
#if defined(HW_josmp)
#define NCPU 16 // maximum number of CPUs
......
......@@ -376,8 +376,6 @@ scheduler(void)
worked = wq_trywork();
} while(worked);
sti();
if (!WQENABLE)
hlt();
}
}
}
......
#if WQENABLE
#include "types.h"
#include "kernel.h"
#include "spinlock.h"
......@@ -248,5 +247,3 @@ initwq(void)
for (i = 0; i < NCPU; i++)
initlock(&queue[i].lock, "wq lock", LOCKSTAT_WQ);
}
#endif // WQENABLE
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论