History

cpu/topology: Export die_id

Export die_id in cpu topology, for the benefit of hardware that has multiple-die/package.

Len Brown committed 7 years ago

Commit 0e344d81 parent 14d96d63 files · +19 −3Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/topology.h+3−0
@@ -184,6 +184,9 @@ static inline int cpu_to_mem(int cpu) · 183 unmodified lines
184#ifndef topology_physical_package_id184#ifndef topology_physical_package_id
185#define topology_physical_package_id(cpu) ((void)(cpu), -1)185#define topology_physical_package_id(cpu) ((void)(cpu), -1)
186#endif186#endif
187#ifndef topology_die_id
188#define topology_die_id(cpu) ((void)(cpu), -1)
189#endif
187#ifndef topology_core_id190#ifndef topology_core_id
188#define topology_core_id(cpu) ((void)(cpu), 0)191#define topology_core_id(cpu) ((void)(cpu), 0)
189#endif192#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t