]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r356241:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 23 Aug 2020 20:12:07 +0000 (20:12 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 23 Aug 2020 20:12:07 +0000 (20:12 +0000)
commitfb10ada9550df01a60d9f3423f7f6549d281b149
tree6b5e1e76c6a026e2583dfc524a2b1c887ab4b032
parent104b0763328a962157e6fb2d8645b9ada1ef7dff
MFC r356241:

Add basic getcpu(2) support to linuxulator.  The purpose of this
syscall is to query the CPU number and the NUMA domain the calling
thread is currently running on.  The third argument is ignored.
It doesn't do anything regarding scheduling - it's literally
just a way to query the current state, without any guarantees
you won't get rescheduled an opcode later.

This unbreaks Java from CentOS 8
(java-11-openjdk-11.0.5.10-0.el8_0.x86_64).

Sponsored by: The FreeBSD Foundation
sys/amd64/linux/linux_dummy.c
sys/amd64/linux32/linux32_dummy.c
sys/arm64/linux/linux_dummy.c
sys/compat/linux/linux_misc.c
sys/i386/linux/linux_dummy.c