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>
This commit is contained in:
committed by
Patrick Georgi
parent
9966703776
commit
e348066bd8
@ -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;
|
||||
|
Reference in New Issue
Block a user