tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: new acpi utility functions

On Wed, Nov 18, 2009 at 08:31:39AM +0100, Christoph Egger wrote:
> I want to add two new acpi utility functions
> into sys/dev/acpi/acpi.c
> They are needed for ACPI drivers I have
> in my local tree.


It just happens that I've been working with quite similar functions while
exploring the device D-state management.

Could you outline in which context these functions are used? 

The "PNP0A??" is skipped in acpi_build_tree(), and later it is matched
separately in the new acpi_find_pci_device(), which furthermore walks the
namespace on each call. From my limited experience I would have thought that
we want to walk the whole namespace just once while scanning and building
the tree, so that all device nodes can be searched directly and efficiently
from internal data structures.

- Jukka.

Home | Main Index | Thread Index | Old Index