lkml.org 
[lkml]   [2008]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: PATCH: /proc/acpi/alarm: handle day-of-month wraparound on readback
    Len Brown wrote:
    > I don't have a /proc/acpi/alarm due to this:
    >
    > #if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) ||
    > !defined(CONFIG_X86)
    > /* use /sys/class/rtc/rtcX/wakealarm instead; it's not ACPI-specific */
    > #else
    > #define HAVE_ACPI_LEGACY_ALARM
    > #endif
    ..

    Yeah.. bit of a nuisance that.
    I regularly apply this patch to my own kernels:

    --- old/drivers/acpi/sleep/proc.c 2008-01-06 16:39:45.000000000 -0500
    +++ linux/drivers/acpi/sleep/proc.c 2008-01-06 17:35:35.000000000 -0500
    @@ -78,11 +78,11 @@
    }
    #endif /* CONFIG_ACPI_PROCFS */

    -#if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) || !defined(CONFIG_X86)
    +//#if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) || !defined(CONFIG_X86)
    /* use /sys/class/rtc/rtcX/wakealarm instead; it's not ACPI-specific */
    -#else
    +//#else
    #define HAVE_ACPI_LEGACY_ALARM
    -#endif
    +//#endif

    #ifdef HAVE_ACPI_LEGACY_ALARM


    \
     
     \ /
      Last update: 2008-12-01 23:17    [W:0.023 / U:0.500 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site