Module Name: src
Committed By: jym
Date: Sat May 7 17:38:35 UTC 2011
Modified Files:
src/sys/arch/xen/xen [jym-xensuspend]: balloon.c
Log Message:
Implement pmf(9) suspend/resume routines for balloon(4). Trivial, heh.
To generate a diff of this commit:
cvs rdiff -u -r1.5.6.4 -r1.5.6.5 src/sys/arch/xen/xen/balloon.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/balloon.c
diff -u src/sys/arch/xen/xen/balloon.c:1.5.6.4 src/sys/arch/xen/xen/balloon.c:1.5.6.5
--- src/sys/arch/xen/xen/balloon.c:1.5.6.4 Mon May 2 22:49:59 2011
+++ src/sys/arch/xen/xen/balloon.c Sat May 7 17:38:35 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: balloon.c,v 1.5.6.4 2011/05/02 22:49:59 jym Exp $ */
+/* $NetBSD: balloon.c,v 1.5.6.5 2011/05/07 17:38:35 jym Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
#define BALLOONDEBUG 0
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.5.6.4 2011/05/02 22:49:59 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.5.6.5 2011/05/07 17:38:35 jym Exp $");
#include <sys/inttypes.h>
#include <sys/device.h>
@@ -246,6 +246,9 @@
goto error;
}
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "couldn't establish power handler\n");
+
return;
error: