From: "Jan Beulich" Date: Fri, 08 Oct 2010 07:05:21 +0000 Subject: Re: [lm-sensors] [PATCH] coretemp: fix reading of microcode revision Message-Id: <4CAEDED1020000780001B75C@vpn.id2.novell.com> List-Id: References: <4CADB0A1020000780001B335@vpn.id2.novell.com> In-Reply-To: <4CADB0A1020000780001B335@vpn.id2.novell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org >>> On 07.10.10 at 20:46, Fenghua Yu wrote: > On Thu, Oct 07, 2010 at 02:36:01AM -0700, Jan Beulich wrote: >> @@ -327,8 +336,13 @@ static int __devinit coretemp_probe(stru >> >> if ((c->x86_model = 0xe) && (c->x86_mask < 0xc)) { >> /* check for microcode update */ >> - rdmsr_on_cpu(data->id, MSR_IA32_UCODE_REV, &eax, &edx); >> - if (edx < 0x39) { >> + err = smp_call_function_single(data->id, get_ucode_rev_on_cpu, >> + &edx, 1); >> + if (err) >> + dev_warn(&pdev->dev, >> + "Cannot determine microcode revision " >> + "of the CPU!\n"); > > When err, need to call dev_err and go to exit_free. This error handling > should > be same as edx < 0x39 case. Hmm, not sure - I'd prefer to consider the machine usable in this (theoretical only anyway) case. Jan _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors