Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

From: Ingo Molnar
Date: Tue Oct 09 2018 - 06:54:35 EST



* Yi Sun <yi.y.sun@xxxxxxxxxxxxxxx> wrote:

> Follow PV spinlock mechanism to implement the callback functions
> to allow the CPU idling and kicking operations on Hyper-V.

> +#if defined(CONFIG_SMP)
> + smp_ops.smp_prepare_boot_cpu = hv_smp_prepare_boot_cpu;
> +#endif

What's wrong with using the common pattern of:

#ifdef CONFIG_SMP

?

Thanks,

Ingo