Module Name: src
Committed By: yamt
Date: Wed Apr 18 13:42:11 UTC 2012
Modified Files:
src/sys/sys: pcu.h
Log Message:
comment
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/sys/pcu.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/pcu.h
diff -u src/sys/sys/pcu.h:1.8 src/sys/sys/pcu.h:1.9
--- src/sys/sys/pcu.h:1.8 Mon Jun 6 22:04:34 2011
+++ src/sys/sys/pcu.h Wed Apr 18 13:42:11 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: pcu.h,v 1.8 2011/06/06 22:04:34 matt Exp $ */
+/* $NetBSD: pcu.h,v 1.9 2012/04/18 13:42:11 yamt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -49,6 +49,20 @@
#if PCU_UNIT_COUNT > 0
+/*
+ * pcu_state_save(lwp)
+ * save the current CPU's state into the given LWP's MD storage.
+ *
+ * pcu_state_load(lwp, used)
+ * load PCU state from the given LWP's MD storage to the current CPU.
+ * the 'used' argument is true if it isn't the first time the LWP uses
+ * the PCU.
+ *
+ * pcu_state_release(lwp)
+ * tell MD code detect the next use of the PCU on the LWP, and call
+ * pcu_load().
+ */
+
typedef struct {
u_int pcu_id;
void (*pcu_state_save)(lwp_t *);