Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| enum cpuhp_state | state | |
| bool | invoke |
| 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) |
| 1903 | remove : |
| 1904 | cpuhp_store_callbacks(state, NULL, NULL, NULL, false) |
| 1905 | mutex_unlock( & cpuhp_state_mutex) |
| Name | Describe |
|---|---|
| __cpuhp_remove_state | |
| cpuhp_remove_state_nocalls_cpuslocked |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |