diff options
-rw-r--r-- | drivers/hwmon/coretemp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index ce18c046f728..104b3767516c 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c | |||
@@ -60,14 +60,13 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius"); | |||
60 | #ifdef CONFIG_SMP | 60 | #ifdef CONFIG_SMP |
61 | #define TO_PHYS_ID(cpu) cpu_data(cpu).phys_proc_id | 61 | #define TO_PHYS_ID(cpu) cpu_data(cpu).phys_proc_id |
62 | #define TO_CORE_ID(cpu) cpu_data(cpu).cpu_core_id | 62 | #define TO_CORE_ID(cpu) cpu_data(cpu).cpu_core_id |
63 | #define TO_ATTR_NO(cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) | ||
64 | #define for_each_sibling(i, cpu) for_each_cpu(i, cpu_sibling_mask(cpu)) | 63 | #define for_each_sibling(i, cpu) for_each_cpu(i, cpu_sibling_mask(cpu)) |
65 | #else | 64 | #else |
66 | #define TO_PHYS_ID(cpu) (cpu) | 65 | #define TO_PHYS_ID(cpu) (cpu) |
67 | #define TO_CORE_ID(cpu) (cpu) | 66 | #define TO_CORE_ID(cpu) (cpu) |
68 | #define TO_ATTR_NO(cpu) (cpu) | ||
69 | #define for_each_sibling(i, cpu) for (i = 0; false; ) | 67 | #define for_each_sibling(i, cpu) for (i = 0; false; ) |
70 | #endif | 68 | #endif |
69 | #define TO_ATTR_NO(cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) | ||
71 | 70 | ||
72 | /* | 71 | /* |
73 | * Per-Core Temperature Data | 72 | * Per-Core Temperature Data |