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.