/* SPDX-License-Identifier: GPL-2.0-only */ #include #include #include #include #include "i82371eb.h" static void generate_cpu_entry(int cpu) { int pcontrol_blk = DEFAULT_PMBASE + PCNTRL, plen = 6; acpigen_write_processor(cpu, pcontrol_blk, plen); acpigen_pop_len(); } void generate_cpu_entries(const struct device *device) { int cpu; int numcpus = dev_count_cpu(); printk(BIOS_DEBUG, "Found %d CPU(s).\n", numcpus); /* without the outer scope, further ssdt addition will end up * within the processor statement */ acpigen_write_scope("\\_SB"); for (cpu = 0; cpu < numcpus; cpu++) generate_cpu_entry(cpu); acpigen_pop_len(); }