diff options
| author | Russell King (Oracle) <[email protected]> | 2023-10-20 14:45:30 +0000 |
|---|---|---|
| committer | Helge Deller <[email protected]> | 2023-10-30 13:54:41 +0000 |
| commit | 1c7431b39a9ca14f7d3d57fce80838c8550b7db3 (patch) | |
| tree | 33b7e67626aaff525678fd86e37a9febd070be16 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
| parent | parisc/agp: Use 64-bit LE values in SBA IOMMU PDIR table (diff) | |
| download | kernel-1c7431b39a9ca14f7d3d57fce80838c8550b7db3.tar.gz kernel-1c7431b39a9ca14f7d3d57fce80838c8550b7db3.zip | |
parisc: simplify smp_prepare_boot_cpu()
smp_prepare_boot_cpu() reads the cpuid of the first CPU, printing a
message to state which processor booted, and setting it online and
present.
This cpuid is retrieved from per_cpu(cpu_data, 0).cpuid, which is
initialised in arch/parisc/kernel/processor.c:processor_probe() thusly:
p = &per_cpu(cpu_data, cpuid);
...
p->cpuid = cpuid; /* save CPU id */
Consequently, the cpuid retrieved seems to be guaranteed to also be
zero, meaning that the message printed in this boils down to:
pr_info("SMP: bootstrap CPU ID is 0\n");
Moreover, since kernel/cpu.c::boot_cpu_init() already sets CPU 0 to
be present and online, there is no need to do this again in
smp_prepare_boot_cpu().
Remove this code, and simplify the printk().
Signed-off-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions
