[PATCH v5 08/26] powerpc/book3s64/pkeys: Convert execute key support to static key
Aneesh Kumar K.V
aneesh.kumar at linux.ibm.com
Mon Jul 6 18:47:54 AEST 2020
On 7/6/20 12:49 PM, Michael Ellerman wrote:
> "Aneesh Kumar K.V" <aneesh.kumar at linux.ibm.com> writes:
>> Convert the bool to a static key like pkey_disabled.
>
> I'm not convinced this is worth the added complexity of a static key.
>
> It's not used in any performance critical paths, except for context
> switch, but that's already guarded by:
>
> if (old_thread->iamr != new_thread->iamr)
>
> Which should always be false on machines which don't have the execute
> key enabled.
>
Ok will drop the patch.
-aneesh
More information about the Linuxppc-dev
mailing list