Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern provide pmf stubs



details:   https://anonhg.NetBSD.org/src/rev/a2d76b4e647c
branches:  trunk
changeset: 747272:a2d76b4e647c
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Sep 07 20:56:04 2009 +0000

description:
provide pmf stubs

diffstat:

 sys/rump/librump/rumpkern/emul.c |  21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r bca35cd823d0 -r a2d76b4e647c sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Mon Sep 07 20:50:35 2009 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Mon Sep 07 20:56:04 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.93 2009/09/06 19:14:54 pooka Exp $  */
+/*     $NetBSD: emul.c,v 1.94 2009/09/07 20:56:04 pooka Exp $  */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.93 2009/09/06 19:14:54 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.94 2009/09/07 20:56:04 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -760,6 +760,23 @@
        return tstohz(ts);
 }
 
+bool
+pmf_device_register1(struct device *dev,
+       bool (*suspend)(device_t PMF_FN_PROTO),
+       bool (*resume)(device_t PMF_FN_PROTO),
+       bool (*shutdown)(device_t, int))
+{
+
+       return true;
+}
+
+void
+pmf_device_deregister(struct device *dev)
+{
+
+       /* nada */
+}
+
 
 /* XXX: static, but not used except to make spcopy.S link */
 #ifdef __hppa__



Home | Main Index | Thread Index | Old Index