diff options
author | Madhavan Srinivasan <maddy@linux.vnet.ibm.com> | 2017-10-11 09:10:04 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-10-15 20:08:14 -0500 |
commit | a9cf7c586871bdd8187760862c2df8bb2fbb2d6f (patch) | |
tree | 5111c5b679323e91dc88183583a6cc2b0c790d06 /include | |
parent | a6559413f07d4bc6c58b00858c48d2fc70165011 (diff) | |
download | skiboot-a9cf7c586871bdd8187760862c2df8bb2fbb2d6f.zip skiboot-a9cf7c586871bdd8187760862c2df8bb2fbb2d6f.tar.gz skiboot-a9cf7c586871bdd8187760862c2df8bb2fbb2d6f.tar.bz2 |
hw/imc: Use ARRAY_SIZE instead of static macro
disable_unavailable_units() loops through nest_pmus array
to filter out the unsupported nest units from the imc
catalog dtb. Current code use a static macro ('MAX_NEST_UNITS')
for array limit, instead use ARRAY_SIZE. This will avoid updates
to static macro when updating the nest_pmus array.
Fixes: 712837cedca06 ('skiboot/imc: Update the nest_pmus array with occ/gpe microcode uav updates')
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/imc.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/imc.h b/include/imc.h index 9eaf804..f3d906e 100644 --- a/include/imc.h +++ b/include/imc.h @@ -119,8 +119,6 @@ struct imc_chip_cb #define NEST_IMC_ENABLE 0x1 #define NEST_IMC_DISABLE 0x2 -#define MAX_NEST_UNITS 48 - /* * Core IMC SCOMs */ |