[PATCH 14/19] powerpc: Add ppc_strict_facility_enable boot option

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Sep 2 13:48:03 AEST 2017


On Thu, 2015-10-29 at 11:44 +1100, Anton Blanchard wrote:
>  
> +extern void msr_check_and_set(unsigned long bits);
> +extern bool strict_msr_control;
> +extern void __msr_check_and_clear(unsigned long bits);
> +static inline void msr_check_and_clear(unsigned long bits)
> +{
> +       if (strict_msr_control)
> +               __msr_check_and_clear(bits);
> +}
> +
>  static inline unsigned long mfvtb (void)

Sounds like a good candidate for a static key...

Cheers,
Ben.



More information about the Linuxppc-dev mailing list