Module Name:    src
Committed By:   cegger
Date:           Thu Jun 18 11:12:07 UTC 2009

Modified Files:
        src/sys/arch/xen/x86 [jym-xensuspend]: cpu.c

Log Message:
register physical CPUs with pmf.
No suspend/resume handlers needed since the hypervisor itself handles them.
ok @jym


To generate a diff of this commit:
cvs rdiff -u -r1.31.2.1 -r1.31.2.2 src/sys/arch/xen/x86/cpu.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/x86/cpu.c
diff -u src/sys/arch/xen/x86/cpu.c:1.31.2.1 src/sys/arch/xen/x86/cpu.c:1.31.2.2
--- src/sys/arch/xen/x86/cpu.c:1.31.2.1	Mon Feb  9 00:03:55 2009
+++ src/sys/arch/xen/x86/cpu.c	Thu Jun 18 11:12:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.31.2.1 2009/02/09 00:03:55 jym Exp $	*/
+/*	$NetBSD: cpu.c,v 1.31.2.2 2009/06/18 11:12:07 cegger Exp $	*/
 /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp  */
 
 /*-
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.31.2.1 2009/02/09 00:03:55 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.31.2.2 2009/06/18 11:12:07 cegger Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -275,6 +275,10 @@
 	default:
 		panic("unknown processor type??\n");
 	}
+
+	if (!pmf_device_register(self, NULL, NULL))
+		aprint_error_dev(self, "couldn't establish power handler\n");
+
 	return;
 #else
 	cpu_attach_common(parent, self, aux);

Reply via email to