Re: [RFC, PATCH] Add a CPU_STARTING notifier (was: Re: [PATCH, RFC] v4 scalable classic RCU implementation)

From: Andi Kleen
Date: Sun Sep 07 2008 - 07:04:19 EST


> What about introducing a CPU_STARTING notifier call, similar to CPU_DYING:
> - called with disabled interrupts
> - called before interrupts are enabled
> - must not sleep
> - called on the new cpu.
>
> This might also be useful for something like kvm. I'm not sure if it's
> guaranteed that hardware_enable() runs early enough.

I would find that useful too. I had several cases where i had
to add smp_call_function_single() with a second callback to the CPU_UP
notifier, which always seemed ugly.

-Andi
--
ak@xxxxxxxxxxxxxxx
--
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/