Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__cpuhp_remove_state_cpuslocked - Remove the callbacks for an hotplug machine state*@state: The state to remove*@invoke: If true, the teardown function is invoked for cpus where* cpu state >= @state

Proto:void __cpuhp_remove_state_cpuslocked(enum cpuhp_state state, bool invoke)

Type:void

Parameter:

TypeParameterName
enum cpuhp_statestate
boolinvoke
1873  sp = cpuhp_get_step(state)
1876  BUG_ON(Sanity check for callbacks )
1878  lockdep_assert_cpus_held()
1880  mutex_lock( & cpuhp_state_mutex)
1881  If multi_instance Then
1882  WARN(!hlist_empty( & list), "Error: Removing state %d which has instances left.\n", state)
1885  Go to remove
1888  If Not invoke || Not cpuhp_get_teardown_cb(state) Then Go to remove
1896  for_each_present_cpu(cpu)
1897  st = per_cpu_ptr( & cpuhp_state, cpu)
1898  cpustate = state
1900  If cpustate >= state Then Call the startup/teardown function for a step either on the AP or* on the current CPU.
1903  remove :
1904  cpuhp_store_callbacks(state, NULL, NULL, NULL, false)
1905  mutex_unlock( & cpuhp_state_mutex)
Caller
NameDescribe
__cpuhp_remove_state
cpuhp_remove_state_nocalls_cpuslocked