]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(cpufeat): move helpers into .c file, rename FEAT_STATE_
authorAndre Przywara <andre.przywara@arm.com>
Mon, 14 Nov 2022 15:38:58 +0000 (15:38 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 11 Jan 2023 16:02:58 +0000 (16:02 +0000)
commit69c17f52f90b55bcaf7c4e4e72babe30fe3a79eb
treeecf397ac1ba2dd07f420691f7273075a7506c924
parentc2fb8ef66ccc8222c70ab802cdaf29f1592cbbb6
refactor(cpufeat): move helpers into .c file, rename FEAT_STATE_

The FEATURE_DETECTION functionality had some definitions in a header
file, although they were only used internally in the .c file.
Move them over there, since there are of no interest to other users.

Also use the opportuntiy to rename the less telling FEAT_STATE_[12]
names, and let the "0" case join the game. We use DISABLED, ALWAYS, and
CHECK now, so that the casual reader has some idea what those numbers
are supposed to mean.

feature_panic() becomes "static inline", since disabling all features
makes it unused, so the compiler complains otherwise.

Finally add a new category "cpufeat" to cover CPU feature related
changes.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: If0c8ba91ad22440260ccff383c33bdd055eefbdc
changelog.yaml
common/feat_detect.c
include/common/feat_detect.h