From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] Add support for Atom CPUs
Date: Wed, 08 Jul 2009 21:18:34 +0000 [thread overview]
Message-ID: <20090708231834.2169e6fb@hyperion.delvare> (raw)
In-Reply-To: <4A522794.1020507@assembler.cz>
On Wed, 08 Jul 2009 22:38:05 +0200, Rudolf Marek wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> >> + /* if we dont use msr EE it means we are desktop CPU (with exeception of Atom) */
> >
> > Line too long.
>
> Well I thought the 80 lines limit is not so strict anymore.
Quoting CodingStyle:
"The only exception to this is where exceeding 80 columns significantly
increases readability and does not hide information."
Do you really believe that splitting this comment will hinder
readability?
> >> + } else if (tjmax = 100000) {
> >> dev_warn(dev, "Using relative temperature scale!\n");
> >> }
> >>
> >
> > I think function adjust_tjmax() has reached its limit of readability. I
> > don't understand why it needs to be so complex. For example, the case
> > of the Atom is very simply always return 90 degree C. So why not just:
>
> Yes right, but it is going to be complex for penryns. I will try to simplify it.
>
> >
> > /* Atoms seems to have TjMax at 90C */
> > if (c->x86_model = 0x1c)
> > return 90000;
>
> Because of multiple returns? If you are OK with multiple returns I will fix it.
Last time I checked, the C language supported it ;) I see no point in
limiting yourself if this means your code becomes harder to read.
Thanks,
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2009-07-08 21:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 16:34 [lm-sensors] [PATCH] Add support for Atom CPUs Rudolf Marek
2009-07-06 20:38 ` Rudolf Marek
2009-07-07 10:52 ` Jean Delvare
2009-07-08 20:38 ` Rudolf Marek
2009-07-08 21:18 ` Jean Delvare [this message]
2009-09-20 8:28 ` Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090708231834.2169e6fb@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.