diff options
| -rw-r--r-- | drivers/hwmon/coretemp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index d9e70ac413a5..833d51ff43b3 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c | |||
| @@ -511,8 +511,8 @@ static int create_core_data(struct platform_data *pdata, | |||
| 511 | /* | 511 | /* |
| 512 | * Provide a single set of attributes for all HT siblings of a core | 512 | * Provide a single set of attributes for all HT siblings of a core |
| 513 | * to avoid duplicate sensors (the processor ID and core ID of all | 513 | * to avoid duplicate sensors (the processor ID and core ID of all |
| 514 | * HT siblings of a core is the same). | 514 | * HT siblings of a core are the same). |
| 515 | * Skip if a HT sibling of this core is already online. | 515 | * Skip if a HT sibling of this core is already registered. |
| 516 | * This is not an error. | 516 | * This is not an error. |
| 517 | */ | 517 | */ |
| 518 | if (pdata->core_data[attr_no] != NULL) | 518 | if (pdata->core_data[attr_no] != NULL) |
| @@ -772,10 +772,10 @@ static void __cpuinit put_core_offline(unsigned int cpu) | |||
| 772 | coretemp_remove_core(pdata, &pdev->dev, indx); | 772 | coretemp_remove_core(pdata, &pdev->dev, indx); |
| 773 | 773 | ||
| 774 | /* | 774 | /* |
| 775 | * If a core is taken offline, but a HT sibling of the same core is | 775 | * If a HT sibling of a core is taken offline, but another HT sibling |
| 776 | * still online, register the alternate sibling. This ensures that | 776 | * of the same core is still online, register the alternate sibling. |
| 777 | * exactly one set of attributes is provided as long as at least one | 777 | * This ensures that exactly one set of attributes is provided as long |
| 778 | * HT sibling of a core is online. | 778 | * as at least one HT sibling of a core is online. |
| 779 | */ | 779 | */ |
| 780 | for_each_sibling(i, cpu) { | 780 | for_each_sibling(i, cpu) { |
| 781 | if (i != cpu) { | 781 | if (i != cpu) { |
