summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-03-30 13:52:58 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-04-02 18:39:58 +0200
commitdc8448fd8be4768ef9d5f9b8cbcf28db0a2029be (patch)
treed4c7e2ab6cbfb649ee4421d734dddc050c8768a6 /src/include/device
parentd40393e3903e57496afcfc88ec094ae17f0e9437 (diff)
downloadcoreboot-dc8448fd8be4768ef9d5f9b8cbcf28db0a2029be.tar.xz
Add a helper function to determine the number of enabled CPUs
Change-Id: Ia72926002571e0f250849fa5db048bd8b2e92400 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: http://review.coreboot.org/821 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index c097f5796b..0aea1d6087 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -133,6 +133,7 @@ device_t dev_find_class (unsigned int class, device_t from);
device_t dev_find_slot (unsigned int bus, unsigned int devfn);
device_t dev_find_slot_on_smbus (unsigned int bus, unsigned int addr);
device_t dev_find_lapic(unsigned apic_id);
+int dev_count_cpu(void);
/* Debug functions */
void print_resource_tree(struct device * root, int debug_level,