Re: [PATCH] [25/48] Suspend2 2.1.9.8 for 2.6.12: 602-smp.patch

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

 



On 7/6/05, Nigel Cunningham <[email protected]> wrote:
> diff -ruNp 603-suspend2_common-headers.patch-old/kernel/power/suspend2_core/suspend2_common.h 603-suspend2_common-headers.patch-new/kernel/power/suspend2_core/suspend2_common.h
> --- 603-suspend2_common-headers.patch-old/kernel/power/suspend2_core/suspend2_common.h  1970-01-01 10:00:00.000000000 +1000
> +++ 603-suspend2_common-headers.patch-new/kernel/power/suspend2_core/suspend2_common.h  2005-07-04 23:14:19.000000000 +1000
> @@ -0,0 +1,49 @@
> +#ifdef CONFIG_PM_DEBUG
> +#define SET_DEBUG_STATE(bit) (test_and_set_bit(bit, &suspend_debug_state))
> +#define CLEAR_DEBUG_STATE(bit) (test_and_clear_bit(bit, &suspend_debug_state))
> +#else
> +#define SET_DEBUG_STATE(bit) (0)
> +#define CLEAR_DEBUG_STATE(bit) (0)
> +#endif
> +
> +#define SET_RESULT_STATE(bit) (test_and_set_bit(bit, &suspend_result))
> +#define CLEAR_RESULT_STATE(bit) (test_and_clear_bit(bit, &suspend_result))
> +
> +#define SUSPEND_ABORT_REQUESTED                1
> +#define SUSPEND_NOSTORAGE_AVAILABLE    2
> +#define SUSPEND_INSUFFICIENT_STORAGE   3
> +#define SUSPEND_FREEZING_FAILED                4
> +#define SUSPEND_UNEXPECTED_ALLOC       5
> +#define SUSPEND_KEPT_IMAGE             6
> +#define SUSPEND_WOULD_EAT_MEMORY       7
> +#define SUSPEND_UNABLE_TO_FREE_ENOUGH_MEMORY 8
> +#define SUSPEND_ENCRYPTION_SETUP_FAILED        9
> +
> +/* second status register */
> +#define SUSPEND_REBOOT                 1
> +#define SUSPEND_PAUSE                  2
> +#define SUSPEND_SLOW                   3
> +#define SUSPEND_NOPAGESET2             4
> +#define SUSPEND_LOGALL                 5
> +#define SUSPEND_CAN_CANCEL             6
> +#define SUSPEND_KEEP_IMAGE             7
> +#define SUSPEND_FREEZER_TEST           8
> +#define SUSPEND_FREEZER_TEST_SHOWALL   9
> +#define SUSPEND_SINGLESTEP             10
> +#define SUSPEND_PAUSE_NEAR_PAGESET_END 11
> +#define SUSPEND_USE_ACPI_S4            12
> +#define SUSPEND_KEEP_METADATA          13
> +#define SUSPEND_TEST_FILTER_SPEED      14
> +#define SUSPEND_FREEZE_TIMERS          15
> +#define SUSPEND_DISABLE_SYSDEV_SUPPORT 16
> +#define SUSPEND_VGA_POST               17
> +
> +#define TEST_ACTION_STATE(bit) (test_bit(bit, &suspend_action))
> +#define SET_ACTION_STATE(bit) (test_and_set_bit(bit, &suspend_action))
> +#define CLEAR_ACTION_STATE(bit) (test_and_clear_bit(bit, &suspend_action))

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux