mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 06:28:22 +00:00
kernel: finish work of removing interruptible mutexes
This commit is contained in:
@@ -87,7 +87,7 @@ static timekeeper_source_info_t *hpet_init(void) {
|
||||
uacpi_table tbl;
|
||||
struct acpi_hpet *table;
|
||||
|
||||
MUTEX_ACQUIRE(&init_mutex, false);
|
||||
MUTEX_ACQUIRE(&init_mutex);
|
||||
if (timekeeper_source_info.hz) {
|
||||
// already initialized by someone else
|
||||
goto leave;
|
||||
|
||||
@@ -26,7 +26,7 @@ static MUTEX_DEFINE(init_mutex);
|
||||
static time_t hz;
|
||||
|
||||
static timekeeper_source_info_t *tsc_init(void) {
|
||||
MUTEX_ACQUIRE(&init_mutex, false);
|
||||
MUTEX_ACQUIRE(&init_mutex);
|
||||
__assert(tsc_probe());
|
||||
|
||||
timekeeper_source_info_t *timekeeper_source_info = alloc(sizeof(timekeeper_source_info_t));
|
||||
|
||||
Reference in New Issue
Block a user