[PATCH v1 4/5] arm64: cpufeature: Test 'matches' pointer to find the end of the list

Suzuki K. Poulose Suzuki.Poulose at arm.com
Wed Feb 3 04:16:29 PST 2016


On 02/02/16 17:03, James Morse wrote:
> CPU feature code uses the desc field as a test to find the end of the list,
> this means every entry must have a description. This generates noise for
> entries in the list that aren't really features, but combinations of them.
> e.g.
>> CPU features: detected feature: Privileged Access Never
>> CPU features: detected feature: PAN and not UAO
>
> These combination features are needed for corner cases with alternatives,
> where cpu features interact.
>
> Change all walkers of the arm64_features[] and arm64_hwcaps[] lists to test
> 'matches' not 'desc', and only print 'desc' if it is non-NULL.

Makes sense.

Reviewed-by : Suzuki K Poulose <suzuki.poulose at arm.com>

Cheers
Suzuki




More information about the linux-arm-kernel mailing list