> Date: Mon, 20 Jun 2011 13:22:52 +0200 (CEST) > From: Mark Kettenis <mark.kette...@xs4all.nl> > > > 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.
Turns out it isn't actually wasting space, or at least not a lot of it, since the whole file is wrapped in #ifndef SMALL_KERNEL. We could still consider adding !small_kernel, since it will speed up building ramdisk kernels a bit.