public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "Brown, Len" <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"Oisín Mac Fhearaí"
	<destynova-iUB+o6dfpG8i1yMB4YHZDQ@public.gmane.org>,
	"ACPI Developers"
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: thermal zone causing insta-reboot on bootup of 2.6.3
Date: Wed, 17 Mar 2004 23:53:30 +0100	[thread overview]
Message-ID: <20040317225330.GA466@elf.ucw.cz> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F8401CBB747-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>

Hi!

> The following patch is from Pavel, and maybe it is suitable for this
> case. --Luming

Probably not. In my case, sensor randomly lies. In his case, it seems
to report 255 all the time...
								Pavel

> @@ -457,7 +460,17 @@
>  		return_VALUE(-EINVAL);
>  
>  	if (tz->temperature >= tz->trips.critical.temperature) {
> +		long old_temperature = tz->temperature;
>  		ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Critical trip point\n"));
> +
> +		result = acpi_thermal_get_temperature(tz);
> +		if (!result) {
> +			if (tz->temperature < (tz->trips.critical.temperature - 100)) {
> +				printk(KERN_ALERT "ACPI changed its mind about temperature, was %ld C, now %ld C", 
> +				       KELVIN_TO_CELSIUS(old_temperature), KELVIN_TO_CELSIUS(tz->temperature));
> +				return_VALUE(0);
> +			}
> +		}
>  		tz->trips.critical.flags.enabled = 1;
>  	}
>  	else if (tz->trips.critical.flags.enabled)
> 
>   
> 

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

  parent reply	other threads:[~2004-03-17 22:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-11  7:10 thermal zone causing insta-reboot on bootup of 2.6.3 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401CBB747-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-03-17 22:53   ` Pavel Machek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-11  0:37 Oisín Mac Fhearaí
     [not found] ` <002c01c40701$11116190$7ce9fea9-UdiLdEXzXlE@public.gmane.org>
2004-03-11  7:01   ` Len Brown
2004-03-17 22:54   ` Pavel Machek

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=20040317225330.GA466@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=destynova-iUB+o6dfpG8i1yMB4YHZDQ@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox