public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [ACPI] acpi_os_queue_for_execution()
@ 2003-01-03 19:00 Grover, Andrew
       [not found] ` <F760B14C9561B941B89469F59BA3A84725A107-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
  2003-01-06 11:44 ` Andrew Morton
  0 siblings, 2 replies; 7+ messages in thread
From: Grover, Andrew @ 2003-01-03 19:00 UTC (permalink / raw)
  To: Pavel Machek, ACPI mailing list, kernel list

> From: Pavel Machek [mailto:pavel-+ZI9xUNit7I@public.gmane.org] 
> Acpi seems to create short-lived kernel threads, and I don't quite
> understand why. 
> 
> In thermal.c
> 
> 
>                         tz->timer.data = (unsigned long) tz;
>                         tz->timer.function = acpi_thermal_run;
>                         tz->timer.expires = jiffies + (HZ * 
> sleep_time) / 1000;
>                         add_timer(&(tz->timer));
> 
> and acpi_thermal_run creates kernel therad that runs
> acpi_thermal_check. Why is not acpi_thermal_check called directly? I
> don't like idea of thread being created every time thermal zone needs
> to be polled...

Are we allowed to block in a timer callback? One of the things
thermal_check does is call a control method, which in turn can be very
slow, sleep, etc., so I'd guess that's why the code tries to execute
things in its own thread.

Regards -- Andy

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-01-06 17:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 19:00 [ACPI] acpi_os_queue_for_execution() Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84725A107-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-01-04 22:44   ` Matthew Wilcox
2003-01-05 12:23   ` Ingo Oeser
2003-01-06 11:12   ` Pavel Machek
2003-01-06 11:44 ` Andrew Morton
     [not found]   ` <3E196C17.7D318CAF-LL/9OlyS9hIAvxtiuMwx3w@public.gmane.org>
2003-01-06 12:58     ` Andrew McGregor
     [not found]       ` <20150000.1041857884-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-01-06 17:26         ` Faye Pearson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox