Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cpu.c Create Date:2022-07-28 09:01:03
Last Modify:2020-03-18 13:00:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_cpu_online

Proto:void set_cpu_online(unsigned int cpu, bool online)

Type:void

Parameter:

TypeParameterName
unsigned intcpu
boolonline
2344  If online Then
2345  If Not pumask_test_and_set_cpu - atomically test and set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in old bitmap of @cpumask, else returns 0* test_and_set_bit wrapper for cpumasks. Then atomic_inc( & __num_online_cpus)
2347  Else
2348  If pumask_test_and_clear_cpu - atomically test and clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in old bitmap of @cpumask, else returns 0* test_and_clear_bit wrapper for cpumasks. Then atomic_dec( & __num_online_cpus)
Caller
NameDescribe
start_secondaryActivate a secondary processor.
boot_cpu_initActivate the first processor.