函数逻辑报告 |
Source Code:arch\x86\kernel\smpboot.c |
Create Date:2022-07-27 09:24:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:native_cpu_up
函数原型:int native_cpu_up(unsigned int cpu, struct task_struct *tidle)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | cpu | |
| struct task_struct * | tidle |
| 1129 | apicid等于cpu_present_to_apicid(cpu) |
| 1130 | cpu0_nmi_registered等于0 |
| 1132 | ret等于0 |
| 1134 | lockdep_assert_irqs_enabled() |
| 1138 | 如果apicid恒等于BAD_APICID或非physid_isset(apicid, phys_cpu_present_map)或非apic_id_valid(apicid)则 |
| 1148 | 如果测试CPU信息则 |
| 1160 | err等于cpu_check_up_prepare(cpu) |
| 1165 | per_cpu(Track which context is using the FPU on the CPU:, cpu) = NULL |
| 1167 | err等于common_cpu_up(cpu, tidle) |
| 1172 | 如果err则 |
| 1182 | local_irq_save(flags) |
| 1183 | check_tsc_sync_source(cpu) |
| 1184 | local_irq_restore(flags) |
| 1186 | 当非cpu_online(cpu)循环 |
| 1187 | cpu_relax() |
| 1191 | unreg_nmi : |
| 1196 | 如果cpu0_nmi_registered则unregister_nmi_handler(NMI_LOCAL, "wake_cpu0") |
| 1199 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |