Hibernation: Arbitrary boot kernel support - generic code