summaryrefslogtreecommitdiff
path: root/kern/llsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/llsync.c')
-rw-r--r--kern/llsync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/llsync.c b/kern/llsync.c
index e3398693..8ba87b67 100644
--- a/kern/llsync.c
+++ b/kern/llsync.c
@@ -102,8 +102,6 @@ llsync_setup(void)
cpu_data = percpu_ptr(llsync_cpu_data, i);
work_queue_init(&cpu_data->queue0);
}
-
- llsync_is_ready = true;
}
static void
@@ -181,6 +179,10 @@ llsync_register(void)
unsigned long flags;
unsigned int cpu;
+ if (!llsync_is_ready) {
+ llsync_is_ready = true;
+ }
+
cpu = cpu_id();
cpu_data = llsync_get_cpu_data();