f5dfe248ce
Use the `popcnt()` helper instead of manually counting the number of set bits in the first `CONFIG_MAX_CPUS` bits with a loop. Also, use unsigned types to store the number of active/total cores. Change-Id: Iae6b16991fcf07c9ad67d2b737e490212b8deedd Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58912 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> |
||
---|---|---|
.. | ||
acpi | ||
bootblock | ||
include/soc | ||
acpi.c | ||
chip.c | ||
chip.h | ||
cpu.c | ||
csme_ie_kt.c | ||
fiamux.c | ||
gpio.c | ||
gpio_dnv.c | ||
hob_display.c | ||
hob_mem.c | ||
Kconfig | ||
lpc.c | ||
Makefile.inc | ||
memmap.c | ||
npk.c | ||
pmc.c | ||
pmutil.c | ||
reset.c | ||
romstage.c | ||
sata.c | ||
smihandler.c | ||
smm.c | ||
soc_util.c | ||
spi.c | ||
systemagent.c | ||
tsc_freq.c | ||
uart.c | ||
uart_debug.c | ||
upd_display.c | ||
xhci.c |