Documented in 1 files:
Defined in 4 files as a macro:
- arch/powerpc/include/asm/topology.h, line 167 (as a macro)
- arch/s390/include/asm/topology.h, line 68 (as a macro)
- arch/x86/include/asm/topology.h, line 245 (as a macro)
- include/linux/topology.h, line 272 (as a macro)
Defined in 4 files as a function:
- arch/powerpc/include/asm/topology.h, line 163 (as a function)
- arch/s390/include/asm/topology.h, line 64 (as a function)
- arch/x86/include/asm/topology.h, line 241 (as a function)
- include/linux/topology.h, line 255 (as a function)
Referenced in 4 files:
- arch/powerpc/platforms/pseries/hotplug-cpu.c, line 405
- arch/x86/kernel/cpu/microcode/core.c, line 724
- include/linux/topology.h, line 253
- kernel/cpu.c
Smatch caller information:
arch/x86/kernel/cpu/microcode/core.c setup_cpus() -> topology_is_primary_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-8192 |
| CAPPED_DATA | 0 | cpu | 1 |
| DATA_SOURCE | 0 | cpu | r find_next_and_bit |
| CONSTRAINT | 0 | cpu | <3035 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/cpu.c cpu_bootable() -> topology_is_primary_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-s32max |
| DATA_SOURCE | 0 | cpu | $0 |
| STR_LEN | 0 | cpu | (-1),8-9,11-29,31-34,38 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cpu_add_remove_lock | ||
| HALF_LOCKED2 | global &sparse_irq_lock |
kernel/cpu.c cpuhp_smt_disable() -> topology_is_primary_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-64 |
| CAPPED_DATA | 0 | cpu | 1 |
| DATA_SOURCE | 0 | cpu | r find_next_bit |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpu_add_remove_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &device_hotplug_lock |