Port-i386 archive

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

Re: New ACPI power resource code for testing



Good point.

On Mon, 8 Mar 2010, Masao Uebayashi wrote:

Define acpi_power.c as a needs-flag (or needs-count) file, and include
the generated header file.  Then you can use #if <foo> preprocessor
directives to determine if you have the power device configured.  If
yes, then feel free to call the initialization code and to register the
consumers;  if not defined, but you find that you want to register a
consumer, report it using aprint_error_dev()

New code should not use needs-flag.  It's module-unfriendly. :)

Masao


-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index