]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use per-CPU attributes earlier.
authorbde <bde@FreeBSD.org>
Sat, 2 Jun 2018 10:36:30 +0000 (10:36 +0000)
committerbde <bde@FreeBSD.org>
Sat, 2 Jun 2018 10:36:30 +0000 (10:36 +0000)
commit070d6e25632ca77f677dc7d17ef2970671cbb4fc
treec8aa0133e4639f9d88312c4842314591963ecb49
parent48738e7c7365cfe346c145aa5e895f5337e0daa6
Use per-CPU attributes earlier.

The per-CPU ts is not initialized early, so the global kernel ts is used
early, but it ony has 1 (normal) attribute.  Switch this to the per-CPU
attribute.

The difference is most visible with EARLY_AP_STARTUP.

Change to using the curcpu macro instead of PCPU_GET(cpuid) in 2 places for
the above and in 1 other place in my old code in syscons.  The function-like
spelling is perhaps better for indicating that curcpu is volatile (unlike
curthread), but for CPU attributes volatility is a feature.
sys/dev/syscons/syscons.c