[PATCH v2] arm: Support for the PXN CPU feature on ARMv7

Arnd Bergmann arnd at arndb.de
Wed Nov 26 04:07:23 PST 2014


On Wednesday 26 November 2014 19:05:13 Jungseung Lee wrote:
> > The 'if (vmsa == 4)' check above looks like it came from an earlier version
> > and is always false, so just drop that.
> vmsa is static variable and it is intended to avoid read_cpuid_ext
> call at every cpu_has_classic_pxn() calling.
> Is it confused code or read_cpuid_ext() overhead is tiny to ignore?
> Kindly let me know your suggestion..

Sorry, my mistake. I missed the 'static' keyword. It might be nice to
add a comment in the function, in case someone else misses it too.

	Arnd



More information about the linux-arm-kernel mailing list