NR_RAPL_PKG_DOMAINS
static int rapl_pkg_hw_unit[NR_RAPL_PKG_DOMAINS] __read_mostly;
cfg = array_index_nospec((long)cfg, NR_RAPL_PKG_DOMAINS + 1);
if (!cfg || cfg >= NR_RAPL_PKG_DOMAINS + 1)
if (!cfg || cfg >= NR_RAPL_PKG_DOMAINS + 1)
for (i = 0; i < NR_RAPL_PKG_DOMAINS; i++)
for (i = 0; i < NR_RAPL_PKG_DOMAINS; i++) {
static const char *const rapl_pkg_domain_names[NR_RAPL_PKG_DOMAINS] __initconst = {