lkml.org 
[lkml]   [2008]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] acpi: semaphore removal
On Tue, Aug 26, 2008 at 12:30:46PM -0700, Daniel Walker wrote:
> On Tue, 2008-08-26 at 13:13 -0600, Matthew Wilcox wrote:
> > On Tue, Aug 26, 2008 at 11:59:49AM -0700, Daniel Walker wrote:
> > > The semaphore usage in ACPI is more like completions. The ASL
> >
> > Huh? They are semaphores. They're not 'more like completions' at all.
>
> You can clearly make a completion out of a semaphore, but we have a
> completion API .. ACPI is using locked semaphores, and essentially
> re-making completions with the semaphore API..

What makes you think that?

executer/excreate.c: status = acpi_os_create_semaphore(ACPI_NO_UNIT_LIMIT, 0,
executer/exsystem.c: acpi_os_create_semaphore(ACPI_NO_UNIT_LIMIT, 0, &temp_semaphore);
namespace/nsaccess.c: acpi_os_create_semaphore(1, 0,
osl.c:acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle)

All users set 'initial_units' to 0.

--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."


\
 
 \ /
  Last update: 2008-08-26 21:55    [W:0.053 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site