[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/spinlock: Use mnemonics for recursive spinlock sentinel values
On 11/01/16 14:19, Jan Beulich wrote: >>>> On 09.01.16 at 15:33, <andrew.cooper3@xxxxxxxxxx> wrote: >> --- a/xen/common/spinlock.c >> +++ b/xen/common/spinlock.c >> @@ -246,7 +246,7 @@ int _spin_trylock_recursive(spinlock_t *lock) >> unsigned int cpu = smp_processor_id(); >> >> /* Don't allow overflow of recurse_cpu field. */ >> - BUILD_BUG_ON(NR_CPUS > 0xfffu); >> + BUILD_BUG_ON(NR_CPUS >= SPINLOCK_NO_CPU); > ">" (see also the reply to Doug's patch 1/2) So it is. As there is no bug, I will resubmit the cleanup when the NR_CPUS series is in to avoid causing patch conflicts. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |