commit | cbb505c1865155bfdf55ba65189b3ce1b47b7f8f | [log] [tgz] |
---|---|---|
author | Sam Edwards <cfsworks@gmail.com> | Wed Oct 11 19:47:53 2023 -0600 |
committer | Andre Przywara <andre.przywara@arm.com> | Sun Oct 22 23:41:52 2023 +0100 |
tree | bd7b4880fb4afb8daf917643a640d5fdf4579a86 | |
parent | e42015b3e9ee7916e9003c70ca1eda62c1f0fb40 [diff] |
sunxi: psci: clean away preprocessor macros This patch restructures psci.c to get away from the "many different function definitions switched by #ifdef" paradigm to the preferred style of having a single function definition with `if (IS_ENABLED(...))` to make the optimizer include only the appropriate function bodies instead. There are no functional changes here. Signed-off-by: Sam Edwards <CFSworks@gmail.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com>