[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH 5/7] cpufreq: cpufreq-cpu0: change cpus data path in devtree for Dom0 kernel
Xen hypervisor creates standard cpus nodes for virtual cpus. All information needed for this driver about physical cpus now located in /cpus/cpu@0/private_data node instead of the /cpus node. Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@xxxxxxxxxxxxxxx> --- drivers/cpufreq/cpufreq-cpu0.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index ef4fbc4..3c4474a 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -182,7 +182,11 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev) struct device_node *np; int ret; +#ifdef CONFIG_XEN_DOM0 + np = of_find_node_by_path("/cpus/cpu@0/private_data/cpu@0"); +#else np = of_find_node_by_path("/cpus/cpu@0"); +#endif if (!np) { pr_err("failed to find cpu0 node\n"); return -ENOENT; -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |