lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 4/5, resend] acpi_pm: adjust PCI quirk handler section annotations
    This is in preparation to adjust modpost to check section mismatches
    on most of the .pci_fixup* sections:

    .pci_fixup_final is only used from .init.text, and hence can (along
    with the respective handler functions) reside in .init.*.

    Several other .pci_fixup_* sections are needed only during boot and
    suspend/resume, and can therefore be moved into .init.* if
    !CONFIG_PM.

    Handler (and eventual static data) section annotations need to/can be
    changed accordingly.

    Signed-off-by: Jan Beulich <jbeulich@suse.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Thomas Gleixner <tglx@linutronix.de>

    ---
    drivers/clocksource/acpi_pm.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    --- 3.4-rc6/drivers/clocksource/acpi_pm.c
    +++ 3.4-rc6-pci-fixup-sections/drivers/clocksource/acpi_pm.c
    @@ -73,7 +73,7 @@ static struct clocksource clocksource_ac


    #ifdef CONFIG_PCI
    -static int __devinitdata acpi_pm_good;
    +static int acpi_pm_good;
    static int __init acpi_pm_good_setup(char *__str)
    {
    acpi_pm_good = 1;
    @@ -102,7 +102,7 @@ static inline void acpi_pm_need_workarou
    * incorrect when read). As a result, the ACPI free running count up
    * timer specification is violated due to erroneous reads.
    */
    -static void __devinit acpi_pm_check_blacklist(struct pci_dev *dev)
    +static void acpi_pm_check_blacklist(struct pci_dev *dev)
    {
    if (acpi_pm_good)
    return;
    @@ -120,7 +120,7 @@ static void __devinit acpi_pm_check_blac
    DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3,
    acpi_pm_check_blacklist);

    -static void __devinit acpi_pm_check_graylist(struct pci_dev *dev)
    +static void acpi_pm_check_graylist(struct pci_dev *dev)
    {
    if (acpi_pm_good)
    return;


    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2012-05-09 11:41    [W:0.024 / U:29.660 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site