From: Konrad Rzeszutek Wilk Date: Wed, 1 Feb 2012 21:07:41 +0000 (-0500) Subject: xen/bootup: During bootup suppress XENBUS: Unable to read cpu state X-Git-Tag: upstream/snapshot3+hdmi~8087^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b02aa1e6e7cf7d3bbf8027dc7e05e0eb2f1e828;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git xen/bootup: During bootup suppress XENBUS: Unable to read cpu state When the initial domain starts, it prints (depending on the amount of CPUs) a slew of XENBUS: Unable to read cpu state XENBUS: Unable to read cpu state XENBUS: Unable to read cpu state XENBUS: Unable to read cpu state which provide no useful information - as the error is a valid issue - but not on the initial domain. The reason is that the XenStore is not accessible at that time (it is after all the first guest) so the CPU hotplug watch cannot parse "availability/cpu" attribute. Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c index 14e2d99..4dcfced 100644 --- a/drivers/xen/cpu_hotplug.c +++ b/drivers/xen/cpu_hotplug.c @@ -30,7 +30,8 @@ static int vcpu_online(unsigned int cpu) sprintf(dir, "cpu/%u", cpu); err = xenbus_scanf(XBT_NIL, dir, "availability", "%s", state); if (err != 1) { - printk(KERN_ERR "XENBUS: Unable to read cpu state\n"); + if (!xen_initial_domain()) + printk(KERN_ERR "XENBUS: Unable to read cpu state\n"); return err; }