lkml.org 
[lkml]   [2005]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] [25/48] Suspend2 2.1.9.8 for 2.6.12: 602-smp.patch
    Date
    From
    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))
    +
    +extern int suspend_act_used;
    +extern int suspend_lvl_used;
    +extern int suspend_dbg_used;
    +extern int suspend_default_console_level;
    +extern unsigned int nr_suspends;
    diff -ruNp 603-suspend2_common-headers.patch-old/kernel/power/suspend2_core/suspend.h 603-suspend2_common-headers.patch-new/kernel/power/suspend2_core/suspend.h
    --- 603-suspend2_common-headers.patch-old/kernel/power/suspend2_core/suspend.h 1970-01-01 10:00:00.000000000 +1000
    +++ 603-suspend2_common-headers.patch-new/kernel/power/suspend2_core/suspend.h 2005-07-05 23:48:59.000000000 +1000
    @@ -0,0 +1,24 @@
    +/*
    + * kernel/power/suspend2.h
    + *
    + * Copyright (C) 2004-2005 Nigel Cunningham <nigel@suspend2.net>
    + *
    + * This file is released under the GPLv2.
    + *
    + * It contains declarations used throughout swsusp and suspend2.
    + *
    + */
    +#ifndef KERNEL_POWER_SUSPEND_CORE_H
    +#define KERNEL_POWER_SUSPEND_CORE_H
    +
    +#include <linux/delay.h>
    +#include <linux/bootmem.h>
    +
    +extern unsigned long suspend2_orig_mem_free;
    +
    +#define KB(x) ((x) << (PAGE_SHIFT - 10))
    +#define MB(x) ((x) >> (20 - PAGE_SHIFT))
    +
    +extern int suspend_start_anything(int starting_cycle);
    +extern void suspend_finish_anything(int finishing_cycle);
    +#endif
    diff -ruNp 603-suspend2_common-headers.patch-old/kernel/power/suspend2_core/version.h 603-suspend2_common-headers.patch-new/kernel/power/suspend2_core/version.h
    --- 603-suspend2_common-headers.patch-old/kernel/power/suspend2_core/version.h 1970-01-01 10:00:00.000000000 +1000
    +++ 603-suspend2_common-headers.patch-new/kernel/power/suspend2_core/version.h 2005-07-04 23:14:19.000000000 +1000
    @@ -0,0 +1,5 @@
    +#define SUSPEND_CORE_VERSION "2.1.9.8"
    +#ifndef KERNEL_POWER_SWSUSP_C
    +#define name_suspend "Software Suspend " SUSPEND_CORE_VERSION ": "
    +#endif
    +
    -
    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: 2005-07-06 05:26    [W:0.024 / U:62.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site