Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\smpboot.c Create Date:2022-07-28 08:24:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:duce the number of lines printed when booting a large cpu count system

Proto:static void announce_cpu(int cpu, int apicid)

Type:void

Parameter:

TypeParameterName
intcpu
intapicid
896  current_node = NUMA_NO_NODE
897  node = Same function but used if called before per_cpu areas are setup
900  If Not width Then width = num_digits(num_possible_cpus()) + 1
903  If Not node_width Then node_width = num_digits(num_possible_nodes()) + 1
906  If cpu == 1 Then printk(formational "x86: Booting SMP configuration:\n")
909  If Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. < SYSTEM_RUNNING Then
910  If node != current_node Then
913  current_node = node
915  printk(formational ".... node %*s#%d, CPUs: ", node_width - num_digits(node), " ", node)
920  If cpu == 1 Then Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("%*s", width + 1, " ")
923  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("%*s#%d", width - num_digits(cpu), " ", cpu)
925  Else pr_info("Booting Node %d Processor %d APIC 0x%x\n", node, cpu, apicid)
Caller
NameDescribe
do_boot_cpuNOTE - on most systems this is a PHYSICAL apic ID, but on multiquad* (ie clustered apic addressing mode), this is a LOGICAL apic ID.* Returns zero if CPU booted OK, else error code from* ->wakeup_secondary_cpu.