https://github.com/torvalds/linux
Revision 805bdaec1a44155db35f6ee5410d6bbc365324a8 authored by Rafael J. Wysocki on 24 February 2011, 10:10:01 UTC, committed by Rafael J. Wysocki on 24 February 2011, 18:53:06 UTC
Commit 074037e (PM / Wakeup: Introduce wakeup source objects and
event statistics (v3)) caused ACPI wakeup to only work if
CONFIG_PM_SLEEP is set, but it also worked for CONFIG_PM_SLEEP unset
before.  This can be fixed by making device_set_wakeup_enable(),
device_init_wakeup() and device_may_wakeup() work in the same way
as before commit 074037e when CONFIG_PM_SLEEP is unset.

Reported-and-tested-by: Justin Maggard <jmaggard10@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
1 parent 2aa1589
Raw File
Tip revision: 805bdaec1a44155db35f6ee5410d6bbc365324a8 authored by Rafael J. Wysocki on 24 February 2011, 10:10:01 UTC
PM: Make ACPI wakeup from S5 work again when CONFIG_PM_SLEEP is unset
Tip revision: 805bdae
irq_regs.c
/* saved per-CPU IRQ register pointer
 *
 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */
#include <linux/module.h>
#include <asm/irq_regs.h>

#ifndef ARCH_HAS_OWN_IRQ_REGS
DEFINE_PER_CPU(struct pt_regs *, __irq_regs);
EXPORT_PER_CPU_SYMBOL(__irq_regs);
#endif
back to top