> Date: Mon, 20 Jun 2011 11:04:24 +0200
> From: Mike Belopuhov <m...@crypt.org.ru>
> 
> hi,
> 
> the hibernate_machdep.c file depends on the acpi so it would be
> nice if we excluded this file if kernel config doesn't reference
> acpi. a simple fix that establishes the dependency is below. ok?

The hibernate code doesn't really depend on ACPI.  Currently it is
only called by the acpi code, but it should work just as well on
systems without ACPI.

The code should be !small_kernel though; it seems it is currently
wasting ramdisk space.

> Index: arch/i386/conf/files.i386
> ===================================================================
> RCS file: /home/cvs/src/sys/arch/i386/conf/files.i386,v
> retrieving revision 1.203
> diff -u -p -r1.203 files.i386
> --- arch/i386/conf/files.i386 23 May 2011 09:54:20 -0000      1.203
> +++ arch/i386/conf/files.i386 17 Jun 2011 10:28:40 -0000
> @@ -24,7 +24,7 @@ file        arch/i386/i386/est.c            !small_kernel
>  file arch/i386/i386/gdt.c
>  file arch/i386/i386/in_cksum.s       inet
>  file arch/i386/i386/machdep.c
> -file arch/i386/i386/hibernate_machdep.c
> +file arch/i386/i386/hibernate_machdep.c      acpi
>  file arch/i386/i386/via.c
>  file arch/i386/i386/amd64errata.c    !small_kernel
>  file arch/i386/i386/kgdb_machdep.c   kgdb

Reply via email to