sys/sched.h: conceal struct schedstate_percpu definition from userspace
authorcheloha <cheloha@openbsd.org>
Sun, 14 Jan 2024 17:11:55 +0000 (17:11 +0000)
committercheloha <cheloha@openbsd.org>
Sun, 14 Jan 2024 17:11:55 +0000 (17:11 +0000)
commit065d92b5dfff2cb2ac74d9d132047b58d687f233
treef11585fb93be7712df93189ee819040022598e7b
parent5a40d3e097d8eec852e9a0e3f88a66c09d667313
sys/sched.h: conceal struct schedstate_percpu definition from userspace

struct schedstate_perpcu contains struct clockintr pointers.  struct
clockintr is not defined in userspace, so move schedstate_percpu into
the _KERNEL guard to hide it from userspace.  Nothing in base userspace
uses schedstate_percpu.

Thread: https://marc.info/?l=openbsd-tech&m=169861224916185&w=2

ok claudio@ millert@
sys/sys/sched.h