aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2018-07-05 17:13:37 +0000
committerAndrew Turner <andrew@FreeBSD.org>2018-07-05 17:13:37 +0000
commit2bf9501287cd79dfb3c0b558692ef2a9057a06a3 (patch)
treeed2eee92ee1eaadeb86a1db1877db3b64027e668 /sys/kern/sched_4bsd.c
parent31ed2b3b0664ee4a9947c91ee7072e1281d5d3a4 (diff)
downloadsrc-2bf9501287cd79dfb3c0b558692ef2a9057a06a3.tar.gz
src-2bf9501287cd79dfb3c0b558692ef2a9057a06a3.zip
Create a new macro for static DPCPU data.
On arm64 (and possible other architectures) we are unable to use static DPCPU data in kernel modules. This is because the compiler will generate PC-relative accesses, however the runtime-linker expects to be able to relocate these. In preparation to fix this create two macros depending on if the data is global or static. Reviewed by: bz, emaste, markj Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D16140
Notes
Notes: svn path=/head/; revision=336007
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 8dc4443259b3..a85356107930 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -176,7 +176,7 @@ struct pcpuidlestat {
u_int idlecalls;
u_int oldidlecalls;
};
-static DPCPU_DEFINE(struct pcpuidlestat, idlestat);
+DPCPU_DEFINE_STATIC(struct pcpuidlestat, idlestat);
static void
setup_runqs(void)