From: Keir Fraser Date: Tue, 17 Mar 2009 13:21:46 +0000 (+0000) Subject: Fix MAX_EVTCHNS() definition. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13992^2~61 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dd3b3946f72af7ac3489f258deadfa7e04c75d44;p=xen.git Fix MAX_EVTCHNS() definition. Pointed out by Jan Beulich. Signed-off-by: Keir Fraser --- diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 9b58a7b64b..5978985c42 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -34,7 +34,7 @@ extern struct domain *dom0; #else #define BITS_PER_EVTCHN_WORD(d) (has_32bit_shinfo(d) ? 32 : BITS_PER_LONG) #endif -#define MAX_EVTCHNS(d) (BITS_PER_EVTCHN_WORD(d) * BITS_PER_EVTCHN_WORD(d) * 64) +#define MAX_EVTCHNS(d) (BITS_PER_EVTCHN_WORD(d) * BITS_PER_EVTCHN_WORD(d)) #define EVTCHNS_PER_BUCKET 128 #define NR_EVTCHN_BUCKETS (NR_EVENT_CHANNELS / EVTCHNS_PER_BUCKET)