]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
xen/multicalls: add unlikely around slowpath in __xen_mc_entry()
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sat, 18 Dec 2010 01:20:25 +0000 (17:20 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 18 Jul 2011 22:43:45 +0000 (15:43 -0700)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/multicalls.c

index 3001162c4bce1495a10c3d17806b67e871c02536..cc71f7cf1adc0ae4748281f64cf2ccbc2f6e8043 100644 (file)
@@ -123,8 +123,8 @@ struct multicall_space __xen_mc_entry(size_t args)
        BUG_ON(preemptible());
        BUG_ON(b->argidx >= MC_ARGS);
 
-       if (b->mcidx == MC_BATCH ||
-           (argidx + args) >= MC_ARGS) {
+       if (unlikely(b->mcidx == MC_BATCH ||
+                    (argidx + args) >= MC_ARGS)) {
                trace_xen_mc_flush_reason((b->mcidx == MC_BATCH) ?
                                          XEN_MC_FL_BATCH : XEN_MC_FL_ARGS);
                xen_mc_flush();