diff for duplicates of <20120504054122.GA19334@ericsson.com> diff --git a/a/1.txt b/N1/1.txt index 0c92368..a26aa48 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -88,7 +88,7 @@ Guenter > + > + mutex_lock(&pdata->temp_data_lock); > + list_for_each_entry(tdata, &pdata->temp_data_list, list) -> + if (tdata->id = id) { +> + if (tdata->id == id) { > + kref_get(&tdata->refcount); > + goto out; > + } @@ -243,7 +243,7 @@ Guenter > - return 0; > + mutex_lock(&pdata->temp_data_lock); > + list_for_each_entry(tdata, &pdata->temp_data_list, list) { -> + if (tdata->id = attr_no) { +> + if (tdata->id == attr_no) { > + mutex_unlock(&pdata->temp_data_lock); > + return 0; > + } @@ -384,11 +384,11 @@ Guenter > - if (indx > MAX_CORE_DATA - 1) > - return; > - -> - if (pdata->core_data[indx] && pdata->core_data[indx]->cpu = cpu) +> - if (pdata->core_data[indx] && pdata->core_data[indx]->cpu == cpu) > - coretemp_remove_core(pdata, &pdev->dev, indx); > + tdata = get_temp_data(pdata, attr_no); > + if (tdata) { -> + if (tdata->cpu = cpu) +> + if (tdata->cpu == cpu) > + coretemp_remove_core(tdata, &pdev->dev); > + kref_put(&tdata->refcount, temp_data_release); > + } @@ -397,9 +397,4 @@ Guenter > * If a HT sibling of a core is taken offline, but another HT sibling > -- > 1.7.9.1 -> - -_______________________________________________ -lm-sensors mailing list -lm-sensors@lm-sensors.org -http://lists.lm-sensors.org/mailman/listinfo/lm-sensors +> diff --git a/a/content_digest b/N1/content_digest index 2f61345..0efa1e9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\01335971436-13903-1-git-send-email-kirill.shutemov@linux.intel.com\0" "ref\01336043936-11105-1-git-send-email-kirill.shutemov@linux.intel.com\0" "From\0Guenter Roeck <guenter.roeck@ericsson.com>\0" - "Subject\0Re: [lm-sensors] [PATCH, v2] hwmon: coretemp: use list instead of fixed size array for temp\0" - "Date\0Fri, 04 May 2012 05:41:22 +0000\0" + "Subject\0Re: [PATCH, v2] hwmon: coretemp: use list instead of fixed size array for temp data\0" + "Date\0Thu, 3 May 2012 22:41:22 -0700\0" "To\0Kirill A. Shutemov <kirill.shutemov@linux.intel.com>\0" "Cc\0Fenghua Yu <fenghua.yu@intel.com>" Durgadoss R <durgadoss.r@intel.com> @@ -102,7 +102,7 @@ "> +\n" "> + mutex_lock(&pdata->temp_data_lock);\n" "> + list_for_each_entry(tdata, &pdata->temp_data_list, list)\n" - "> + if (tdata->id = id) {\n" + "> + if (tdata->id == id) {\n" "> + kref_get(&tdata->refcount);\n" "> + goto out;\n" "> + }\n" @@ -257,7 +257,7 @@ "> - return 0;\n" "> + mutex_lock(&pdata->temp_data_lock);\n" "> + list_for_each_entry(tdata, &pdata->temp_data_list, list) {\n" - "> + if (tdata->id = attr_no) {\n" + "> + if (tdata->id == attr_no) {\n" "> + mutex_unlock(&pdata->temp_data_lock);\n" "> + return 0;\n" "> + }\n" @@ -398,11 +398,11 @@ "> - if (indx > MAX_CORE_DATA - 1)\n" "> - return;\n" "> -\n" - "> - if (pdata->core_data[indx] && pdata->core_data[indx]->cpu = cpu)\n" + "> - if (pdata->core_data[indx] && pdata->core_data[indx]->cpu == cpu)\n" "> - coretemp_remove_core(pdata, &pdev->dev, indx);\n" "> + tdata = get_temp_data(pdata, attr_no);\n" "> + if (tdata) {\n" - "> + if (tdata->cpu = cpu)\n" + "> + if (tdata->cpu == cpu)\n" "> + coretemp_remove_core(tdata, &pdev->dev);\n" "> + kref_put(&tdata->refcount, temp_data_release);\n" "> + }\n" @@ -411,11 +411,6 @@ "> * If a HT sibling of a core is taken offline, but another HT sibling\n" "> --\n" "> 1.7.9.1\n" - "> \n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + > -b16c85200f2616649f7bfe67c7f38569b781ca3f6f5e2f382a63286fcfd9b53b +93c1b68c6dcfacbda40fa5fc2322a0af5b344df7e46e6cf148ac11931a52336d
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.