|
@@ -25,7 +25,7 @@
|
|
#include <linux/irq.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/export.h>
|
|
#include <linux/export.h>
|
|
-#include <linux/of.h>
|
|
|
|
|
|
+#include <linux/of_device.h>
|
|
#include <linux/perf_event.h>
|
|
#include <linux/perf_event.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
@@ -1335,7 +1335,7 @@ static int armpmu_device_probe(struct platform_device *pdev)
|
|
}
|
|
}
|
|
|
|
|
|
for_each_possible_cpu(cpu)
|
|
for_each_possible_cpu(cpu)
|
|
- if (arch_find_n_match_cpu_physical_id(dn, cpu, NULL))
|
|
|
|
|
|
+ if (dn == of_cpu_device_node_get(cpu))
|
|
break;
|
|
break;
|
|
|
|
|
|
if (cpu >= nr_cpu_ids) {
|
|
if (cpu >= nr_cpu_ids) {
|