08 Jul, 2009

1 commit

  • Patch 08687aec71bc9134fe336e561f6did877bacf74fc0a (x86: unify
    power/cpu_(32|64).c) renamed cpu_32.c to cpu.c, but did not update
    the special compilation flags for the file for the new name.

    This patch fixes the compilation flags, and therefore fixes resume
    from suspend on my Acer Aspire One.

    [rjw: The regression from 2.6.30 fixed by this patch is tracked as
    http://bugzilla.kernel.org/show_bug.cgi?id=13661]

    Signed-off-by: Peter Chubb
    Signed-off-by: Rafael J. Wysocki

    Peter Chubb
     

13 Jun, 2009

1 commit

  • This is the last unification step. Here we do remove one of the files
    and rename the left one as cpu.c, as both are now the same.
    Also update power/Makefile, telling it to build cpu.o, instead of
    cpu_(32|64).o

    Signed-off-by: Sergio Luis
    Signed-off-by: Lauro Salmito
    Signed-off-by: Rafael J. Wysocki

    Sergio Luis
     

04 Apr, 2009

1 commit

  • The __restore_processor_state() fn restores %gs on resume from S3. As
    such, it cannot be protected by the stack-protector guard since %gs will
    not be correct on function entry.

    There are only a few other fns in this file and it should not negatively
    impact kernel security that they will also have the stack-protector
    guard removed (and so it's not worth moving them to another file).

    Without this change, S3 resume on a kernel built with
    CONFIG_CC_STACKPROTECTOR_ALL=y will fail.

    Signed-off-by: Joseph Cihula
    Tested-by: Chris Wright
    Cc: Arjan van de Ven
    Cc: Tejun Heo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Joseph Cihula
     

10 Feb, 2008

3 commits

  • Move the hibernation-specific code from arch/x86/power/suspend_64.c
    to a separate file (hibernate_64.c) and the CPU-handling code to
    cpu_64.c (in line with the corresponding 32-bit code).

    Simplify arch/x86/power/Makefile .

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Rafael J. Wysocki
     
  • Rename cpu.c, suspend.c and swsusp.S in arch/x86/power to cpu_32.c,
    hibernate_32.c and hibernate_asm_32.S, respectively, and update the
    purpose and copyright information in these files.

    Update the Makefile in arch/x86/power to reflect the above changes.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Rafael J. Wysocki
     
  • Move arch/x86/kernel/suspend_64.c to arch/x86/power .

    Move arch/x86/kernel/suspend_asm_64.S to arch/x86/power
    as hibernate_asm_64.S .

    Update purpose and copyright information in
    arch/x86/power/suspend_64.c and
    arch/x86/power/hibernate_asm_64.S .

    Update the Makefiles in arch/x86, arch/x86/kernel and
    arch/x86/power to reflect the above changes.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Rafael J. Wysocki
     

11 Oct, 2007

1 commit