diff for duplicates of <20110120221704.GA26954@linux-os.sc.intel.com> diff --git a/a/1.txt b/N1/1.txt index c605dc4..38b4ace 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -97,7 +97,7 @@ On Wed, Jan 19, 2011 at 11:45:44PM -0800, R, Durgadoss wrote: > + struct coretemp_data *data = dev_get_drvdata(dev); > + > + update_alarm(data); -> + if (attr->index = SHOW_CRIT_ALARM) { +> + if (attr->index == SHOW_CRIT_ALARM) { > + /* read the Out-of-spec log, never clear */ > + return sprintf(buf, "%d\n", data->crit_alarm); > + } @@ -113,11 +113,11 @@ On Wed, Jan 19, 2011 at 11:45:44PM -0800, R, Durgadoss wrote: > - int err; > + int err = -EINVAL; > -> - if (attr->index = SHOW_TEMP) +> - if (attr->index == SHOW_TEMP) > + switch (attr->index) { > + case SHOW_TEMP: > err = data->valid ? sprintf(buf, "%d\n", data->temp) : -EAGAIN; -> - else if (attr->index = SHOW_TJMAX) +> - else if (attr->index == SHOW_TJMAX) > + break; > + case SHOW_TJMAX: > err = sprintf(buf, "%d\n", data->tjmax); @@ -274,7 +274,7 @@ On Wed, Jan 19, 2011 at 11:45:44PM -0800, R, Durgadoss wrote: > + > + rdmsr_on_cpu(data->id, MSR_IA32_THERM_INTERRUPT, &eax, &edx); > + -> + if (thres = CORE_TMIN) { +> + if (thres == CORE_TMIN) { > + eax = (eax & ~THERM_MASK_THRESHOLD0) | > + (diff << THERM_SHIFT_THRESHOLD0); > + data->tmin = temp; @@ -400,9 +400,3 @@ index e12246f..6f8c5e9 100644 +EXPORT_SYMBOL(platform_thermal_notify); static DEFINE_PER_CPU(struct thermal_state, thermal_state); - - -_______________________________________________ -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 2f26037..34c56b2 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\0D6D887BA8C9DFF48B5233887EF046541094482ED6A@bgsmsx502.gar.corp.intel.com\0" "From\0Fenghua Yu <fenghua.yu@intel.com>\0" - "Subject\0Re: [lm-sensors]\0" - "Date\0Thu, 20 Jan 2011 22:17:05 +0000\0" + "Subject\0Re: patch[1/1]:hwmon:Adding_Threshold_support_to_coretemp\0" + "Date\0Thu, 20 Jan 2011 14:17:05 -0800\0" "To\0R" " Durgadoss <durgadoss.r@intel.com>\0" "Cc\0Yu" @@ -112,7 +112,7 @@ "> +\tstruct coretemp_data *data = dev_get_drvdata(dev);\n" "> +\n" "> +\tupdate_alarm(data);\n" - "> +\tif (attr->index = SHOW_CRIT_ALARM) {\n" + "> +\tif (attr->index == SHOW_CRIT_ALARM) {\n" "> +\t\t/* read the Out-of-spec log, never clear */\n" "> +\t\treturn sprintf(buf, \"%d\\n\", data->crit_alarm);\n" "> +\t}\n" @@ -128,11 +128,11 @@ "> -\tint err;\n" "> +\tint err = -EINVAL;\n" "> \n" - "> -\tif (attr->index = SHOW_TEMP)\n" + "> -\tif (attr->index == SHOW_TEMP)\n" "> +\tswitch (attr->index) {\n" "> +\tcase SHOW_TEMP:\n" "> \t\terr = data->valid ? sprintf(buf, \"%d\\n\", data->temp) : -EAGAIN;\n" - "> -\telse if (attr->index = SHOW_TJMAX)\n" + "> -\telse if (attr->index == SHOW_TJMAX)\n" "> +\t\tbreak;\n" "> +\tcase SHOW_TJMAX:\n" "> \t\terr = sprintf(buf, \"%d\\n\", data->tjmax);\n" @@ -289,7 +289,7 @@ "> +\n" "> +\trdmsr_on_cpu(data->id, MSR_IA32_THERM_INTERRUPT, &eax, &edx);\n" "> +\n" - "> +\tif (thres = CORE_TMIN) {\n" + "> +\tif (thres == CORE_TMIN) {\n" "> +\t\teax = (eax & ~THERM_MASK_THRESHOLD0) |\n" "> +\t\t\t\t\t(diff << THERM_SHIFT_THRESHOLD0);\n" "> +\t\tdata->tmin = temp;\n" @@ -414,12 +414,6 @@ " int (*platform_thermal_notify)(__u64 msr_val);\n" "+EXPORT_SYMBOL(platform_thermal_notify);\n" " \n" - " static DEFINE_PER_CPU(struct thermal_state, thermal_state);\n" - " \n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + static DEFINE_PER_CPU(struct thermal_state, thermal_state); -82343ce4fe0f2b72dd9e005f695da8d5d187453926facff437f5a1b30af2f615 +b03f231ff8771203a6cec45cb7b1c19571c9f529cff64759083da9313c08aade
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.