summaryrefslogtreecommitdiff
path: root/kern/llsync_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/llsync_i.h')
-rw-r--r--kern/llsync_i.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kern/llsync_i.h b/kern/llsync_i.h
index 6bc1bf1d..e043eb9d 100644
--- a/kern/llsync_i.h
+++ b/kern/llsync_i.h
@@ -18,10 +18,11 @@
#ifndef _KERN_LLSYNC_I_H
#define _KERN_LLSYNC_I_H
-#include <kern/assert.h>
+#include <assert.h>
+#include <stdalign.h>
+
#include <kern/cpumap.h>
#include <kern/macros.h>
-#include <kern/param.h>
#include <kern/spinlock.h>
#include <kern/syscnt.h>
#include <kern/work.h>
@@ -57,7 +58,7 @@ struct llsync_data {
* - apply optimistic accesses to reduce contention
*/
struct {
- volatile unsigned int value __aligned(CPU_L1_SIZE);
+ alignas(CPU_L1_SIZE) volatile unsigned int value;
} gcid;
};