Re: [PATCH 2/6] x86: allow to call text_poke_bp during boot

From: Steven Rostedt
Date: Sat Oct 19 2013 - 17:58:52 EST


On Sat, 19 Oct 2013 14:33:50 -0700
"Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> wrote:


> > /* Ideally we would like to run on zero CPUS! */
> > if (num_online_cpus() < 2)
>
> To be really safe, shouldn't you use complex numbers? Just in case
> you end up running on a system with 5i-3 CPUs or something. ;-)
>
> Thanx, Paul

I did think about that, but I didn't know the algorithm to test such a
case, which is why I added you to the Cc. Hoping you would come up with
a better conditional.

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/