summaryrefslogtreecommitdiff
path: root/arch/x86/machine
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-22 23:57:51 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-22 23:57:51 +0200
commit4a30ffea8c0ef97a023b1ec95f2e51d40e4213d3 (patch)
tree5a10faebffc3914c931fced056bc85e1257a9f79 /arch/x86/machine
parent5176816a358afa06f62d371f4903c00d7842acc0 (diff)
kern/macros: move the __read_mostly macro here
Diffstat (limited to 'arch/x86/machine')
-rw-r--r--arch/x86/machine/param.h5
-rw-r--r--arch/x86/machine/strace.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/machine/param.h b/arch/x86/machine/param.h
index 557bc80..86ce81b 100644
--- a/arch/x86/machine/param.h
+++ b/arch/x86/machine/param.h
@@ -47,11 +47,6 @@
#endif /* __LP64__ */
/*
- * Attributes for variables that are mostly read and seldom changed.
- */
-#define __read_mostly __section(".data.read_mostly")
-
-/*
* System timer frequency.
*
* The selected value of 200 translates to a period of 5ms, small enough to
diff --git a/arch/x86/machine/strace.c b/arch/x86/machine/strace.c
index 6c28cf1..4b7e743 100644
--- a/arch/x86/machine/strace.c
+++ b/arch/x86/machine/strace.c
@@ -22,7 +22,7 @@
#include <kern/init.h>
#include <kern/kmem.h>
#include <kern/log.h>
-#include <kern/param.h>
+#include <kern/macros.h>
#include <machine/elf.h>
#include <machine/multiboot.h>
#include <machine/pmap.h>