Build topology from cpuid in topology.c
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Sep 2015 23:09:01 +0000 (16:09 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 15 Sep 2015 18:04:35 +0000 (14:04 -0400)
commit14b5bebf7996de0c988fb39252880cf20cf48e5c
tree1094bb95d19fecb949f72e894a6469e31a20fa0e
parent7e7c2b091434adff92bae2a48cd64e685b283f5c
Build topology from cpuid in topology.c

This is the first commit to introduce the notion of CPU toology in
Akaros. Previously we relied on a flat topology of cores, with no
concept of hierarchy between hyperthreaded cores, sockets, or numa
domains.  With this commit we begin using the x86 cpuid instruction to
build out structures that are aware of the actual topology underneath.
We also use the ACPI tables to detect our numa structure.

Nothing is actually hooked in yet. We just bring the files in.

[brho: minor touchups, foo(void)s and comments ]
kern/arch/riscv/topology.h [new file with mode: 0644]
kern/arch/x86/topology.c [new file with mode: 0644]
kern/arch/x86/topology.h [new file with mode: 0644]