|
@@ -14,6 +14,7 @@
|
|
|
#include <linux/slab.h>
|
|
|
#include <linux/percpu.h>
|
|
|
#include <linux/acpi.h>
|
|
|
+#include <linux/of.h>
|
|
|
|
|
|
#include "base.h"
|
|
|
|
|
@@ -289,6 +290,7 @@ int register_cpu(struct cpu *cpu, int num)
|
|
|
cpu->dev.release = cpu_device_release;
|
|
|
cpu->dev.offline_disabled = !cpu->hotpluggable;
|
|
|
cpu->dev.offline = !cpu_online(num);
|
|
|
+ cpu->dev.of_node = of_get_cpu_node(num, NULL);
|
|
|
#ifdef CONFIG_ARCH_HAS_CPU_AUTOPROBE
|
|
|
cpu->dev.bus->uevent = arch_cpu_uevent;
|
|
|
#endif
|