From: Rudolf Marek <r.marek@assembler.cz>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] Add support for Atom CPUs
Date: Wed, 08 Jul 2009 20:38:05 +0000 [thread overview]
Message-ID: <4A5503AD.2060800@assembler.cz> (raw)
In-Reply-To: <4A522794.1020507@assembler.cz>
-----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.
>
>> + } 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.
>
> at the beginning of the function, and be done with that case? And I
> suspect the rest can be simplified a bit too.
>
>> @@ -248,9 +256,9 @@
>> platform_set_drvdata(pdev, data);
>>
>> /* read the still undocumented IA32_TEMPERATURE_TARGET it exists
>> - on older CPUs but not in this register */
>> + on older CPUs but not in this register, Atoms don't have it too */
>
> s/too/either/
ok
> sensors-detect needs to be updated as well.
yes good catch.
Thanks,
Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpVA6YACgkQ3J9wPJqZRNVM6wCghNTnneKd3ta0M7X9GO+EeRNZ
OH4An3uuSHgvH/rB+8leDYf7zFAOI9mc
=HIzj
-----END PGP SIGNATURE-----
_______________________________________________
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 20:38 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 [this message]
2009-07-08 21:18 ` Jean Delvare
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=4A5503AD.2060800@assembler.cz \
--to=r.marek@assembler.cz \
--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.