| @@ -12,6 +12,12 @@ physical_package_id: · 11 unmodified lines |
| 12 | socket number, but the actual value is architecture and platform | 12 | socket number, but the actual value is architecture and platform |
| 13 | dependent. | 13 | dependent. |
| 14 | | 14 | |
| | 15 | die_id: |
| | 16 | |
| | 17 | the CPU die ID of cpuX. Typically it is the hardware platform's |
| | 18 | identifier (rather than the kernel's). The actual value is |
| | 19 | architecture and platform dependent. |
| | 20 | |
| 15 | core_id: | 21 | core_id: |
| 16 | | 22 | |
| 17 | the CPU core ID of cpuX. Typically it is the hardware platform's | 23 | the CPU core ID of cpuX. Typically it is the hardware platform's |
| @@ -81,6 +87,7 @@ For an architecture to support this feature, it must define some of · 63 unmodified lines |
| 81 | these macros in include/asm-XXX/topology.h:: | 87 | these macros in include/asm-XXX/topology.h:: |
| 82 | | 88 | |
| 83 | #define topology_physical_package_id(cpu) | 89 | #define topology_physical_package_id(cpu) |
| | 90 | #define topology_die_id(cpu) |
| 84 | #define topology_core_id(cpu) | 91 | #define topology_core_id(cpu) |
| 85 | #define topology_book_id(cpu) | 92 | #define topology_book_id(cpu) |
| 86 | #define topology_drawer_id(cpu) | 93 | #define topology_drawer_id(cpu) |
| @@ -99,9 +106,11 @@ provides default definitions for any of the above macros that are · 12 unmodified lines |
| 99 | not defined by include/asm-XXX/topology.h: | 106 | not defined by include/asm-XXX/topology.h: |
| 100 | | 107 | |
| 101 | 1) topology_physical_package_id: -1 | 108 | 1) topology_physical_package_id: -1 |
| 102 | 2) topology_core_id: 0 | 109 | 2) topology_die_id: -1 |
| 103 | 3) topology_sibling_cpumask: just the given CPU | 110 | 3) topology_core_id: 0 |
| 104 | 4) topology_core_cpumask: just the given CPU | 111 | 4) topology_sibling_cpumask: just the given CPU |
| | 112 | 5) topology_core_cpumask: just the given CPU |
| | 113 | 6) topology_die_cpumask: just the given CPU |
| 105 | | 114 | |
| 106 | For architectures that don't support books (CONFIG_SCHED_BOOK) there are no | 115 | For architectures that don't support books (CONFIG_SCHED_BOOK) there are no |
| 107 | default definitions for topology_book_id() and topology_book_cpumask(). | 116 | default definitions for topology_book_id() and topology_book_cpumask(). |