git: pc64: Move 'cpu_type' definition to the same location as 'cpu_class'
Aaron LI
aly at crater.dragonflybsd.org
Fri Aug 22 20:27:14 PDT 2025
commit 79498c605c804a5f197ffa17acfc4b810a033fe8
Author: Aaron LI <aly at aaronly.me>
Date: Sat Aug 23 08:23:35 2025 +0800
pc64: Move 'cpu_type' definition to the same location as 'cpu_class'
Both 'cpu_type' and 'cpu_class' are declared in <cpu/cputypes.h>, so
move the definition of 'cpu_type' from initcpu.c to identcpu.c where
it's actually assigned.
Meanwhile, move the assignment of 'cpu_class' from printcpuinfo() to
identify_cpu(), placing just after the assignment of 'cpu_type'.
Summary of changes:
sys/platform/pc64/x86_64/identcpu.c | 4 +++-
sys/platform/pc64/x86_64/initcpu.c | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/79498c605c804a5f197ffa17acfc4b810a033fe8
--
DragonFly BSD source repository
More information about the Commits
mailing list