summaryrefslogtreecommitdiff
path: root/src/device/cpu_device.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-06 20:32:23 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-05-22 07:24:23 +0000
commite348066bd867160ab1a3fdcd01129d978e719470 (patch)
treedfbb2291fa9281132137d52afe5a1e9d50417842 /src/device/cpu_device.c
parent996670377666eac27af4c4562d48677305e4e937 (diff)
downloadcoreboot-e348066bd867160ab1a3fdcd01129d978e719470.tar.xz
src/device: Get rid of device_t
Use of device_t has been abandoned in ramstage. The function prototype for "struct device *add_cpu_device" is already correct and doesn't need to be fixed. Change-Id: I7bd8b93922f113bdaf7ba460acf6a7d62c4df013 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26067 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device/cpu_device.c')
-rw-r--r--src/device/cpu_device.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/device/cpu_device.c b/src/device/cpu_device.c
index ccbe6ec7da..b07b555b52 100644
--- a/src/device/cpu_device.c
+++ b/src/device/cpu_device.c
@@ -17,10 +17,11 @@
#include <device/device.h>
#include <console/console.h>
-device_t add_cpu_device(struct bus *cpu_bus, unsigned apic_id, int enabled)
+struct device *add_cpu_device(struct bus *cpu_bus, unsigned apic_id,
+ int enabled)
{
struct device_path cpu_path;
- device_t cpu;
+ struct device *cpu;
/* Build the CPU device path */
cpu_path.type = DEVICE_PATH_APIC;
@@ -41,7 +42,8 @@ device_t add_cpu_device(struct bus *cpu_bus, unsigned apic_id, int enabled)
return cpu;
}
-void set_cpu_topology(device_t cpu, unsigned node, unsigned package, unsigned core, unsigned thread)
+void set_cpu_topology(struct device *cpu, unsigned node, unsigned package,
+ unsigned core, unsigned thread)
{
cpu->path.apic.node_id = node;
cpu->path.apic.package_id = package;