aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2019-08-13 04:54:02 +0000
committerJeff Roberson <jeff@FreeBSD.org>2019-08-13 04:54:02 +0000
commit018ff6860fab7b01d7d86f45b3561bbcfb5b9e72 (patch)
tree28d9c821bf83fc67392e544ca2365d198c98b248 /sys/sys/pcpu.h
parent649e76276270c06d563125205902b50cbd6caf27 (diff)
downloadsrc-018ff6860fab7b01d7d86f45b3561bbcfb5b9e72.tar.gz
src-018ff6860fab7b01d7d86f45b3561bbcfb5b9e72.zip
Move scheduler state into the per-cpu area where it can be allocated on the
correct NUMA domain. Reviewed by: markj, gallatin Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D19315
Notes
Notes: svn path=/head/; revision=350972
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r--sys/sys/pcpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index 3672d6070deb..1d0829ee43c7 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -180,6 +180,7 @@ struct pcpu {
struct thread *pc_fpcurthread; /* Fp state owner */
struct thread *pc_deadthread; /* Zombie thread or NULL */
struct pcb *pc_curpcb; /* Current pcb */
+ void *pc_sched; /* Scheduler state */
uint64_t pc_switchtime; /* cpu_ticks() at last csw */
int pc_switchticks; /* `ticks' at last csw */
u_int pc_cpuid; /* This cpu number */