Re: Can video_detect be made __init?

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

 



On Saturday 08 November 2008 07:55:07 am Andrey Borzenkov wrote:
> I would add DMI entries to force vendor backlight for my system, but
> I'd really prefer they are not remain in memory forever. Is there any
> reason for the whole detection to not happen exactly once? After all,
> ACPI cannot change after boot, can it?
>
> Hmm ... actually DSDT can be loaded from initrd, so it can change ... but
> in this case we actually are just interested in DMI matching which says
> whether vendor driver is preferred or not. What would be the the best
> place to call it from?

Sorry, I only half answered the question in my previous mail.
acpi_video_backlight_support(..)
which is called by the backlight supporting drivers is going to check (when 
invoked the first time) whether general ACPI video functions are provided via 
the ACPI tables.
Advantage is that the check is only done if video.ko or vendor_laptop drivers 
are trying to be loaded. That means on a server where video.ko or 
vendor_laptop.ko are not needed, the video ACPI func detection does not take 
place.
The "disadvantage" is that it's done at driver load time and cannot be 
declared __init.

       Thomas
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux