]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add basic getcpu(2) support to linuxulator. The purpose of this
authortrasz <trasz@FreeBSD.org>
Tue, 31 Dec 2019 22:01:08 +0000 (22:01 +0000)
committertrasz <trasz@FreeBSD.org>
Tue, 31 Dec 2019 22:01:08 +0000 (22:01 +0000)
commitf870efbd57f42155d26b2bc7fb95846897449dca
tree81f711f266ece513cbef1fde0f65ee4bac9ea560
parentdb39757b73fd1287ce36fb334619703b76241a4f
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).

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22972
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