Module Name: src
Committed By: uwe
Date: Sun Apr 5 00:04:52 UTC 2009
Modified Files:
src/sys/arch/sh3/sh3: cpu.c
Log Message:
Register with pmf(9), tell it we don't need anything.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sh3/sh3/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/sh3/sh3/cpu.c
diff -u src/sys/arch/sh3/sh3/cpu.c:1.13 src/sys/arch/sh3/sh3/cpu.c:1.14
--- src/sys/arch/sh3/sh3/cpu.c:1.13 Mon Apr 28 20:23:35 2008
+++ src/sys/arch/sh3/sh3/cpu.c Sun Apr 5 00:04:51 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.13 2008/04/28 20:23:35 martin Exp $ */
+/* $NetBSD: cpu.c,v 1.14 2009/04/05 00:04:51 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.13 2008/04/28 20:23:35 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.14 2009/04/05 00:04:51 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -77,4 +77,7 @@
sh_cache_information();
sh_mmu_information();
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}