Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern - add rcsid
details: https://anonhg.NetBSD.org/src/rev/3b6a04222ad8
branches: trunk
changeset: 995433:3b6a04222ad8
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 22 20:49:04 2018 +0000
description:
- add rcsid
- don't define DEBUG
- protect function used in KASSERT with DIAGNOSTIC not DEBUG
diffstat:
sys/kern/subr_thmap.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r f5df58951c92 -r 3b6a04222ad8 sys/kern/subr_thmap.c
--- a/sys/kern/subr_thmap.c Sat Dec 22 16:58:51 2018 +0000
+++ b/sys/kern/subr_thmap.c Sat Dec 22 20:49:04 2018 +0000
@@ -1,3 +1,5 @@
+/* $NetBSD: subr_thmap.c,v 1.2 2018/12/22 20:49:04 christos Exp $ */
+
/*-
* Copyright (c) 2018 Mindaugas Rasiukevicius <rmind at noxt eu>
* All rights reserved.
@@ -85,6 +87,7 @@
* https://www.csd.uoc.gr/~hy460/pdf/p650-lehman.pdf
*/
+
#ifdef _KERNEL
#include <sys/cdefs.h>
#include <sys/param.h>
@@ -94,6 +97,7 @@
#include <sys/lock.h>
#include <sys/atomic.h>
#include <sys/hash.h>
+#define THMAP_RCSID(a) __KERNEL_RCSID(0, a)
#else
#include <stdio.h>
#include <stdlib.h>
@@ -102,17 +106,19 @@
#include <inttypes.h>
#include <string.h>
#include <limits.h>
+#define THMAP_RCSID(a) __RCSID(a)
#include "thmap.h"
#include "utils.h"
#endif
+THMAP_RCSID($NetBSD: subr_thmap.c,v 1.2 2018/12/22 20:49:04 christos Exp $);
+
/*
* NetBSD kernel wrappers
*/
#ifdef _KERNEL
#define ASSERT KASSERT
-#define DEBUG 1
#define atomic_thread_fence(x) x
#define memory_order_stores membar_producer()
#define memory_order_loads membar_consumer()
@@ -245,7 +251,7 @@
* NODE LOCKING.
*/
-#ifdef DEBUG
+#ifdef DIAGNOSTIC
static inline bool
node_locked_p(const thmap_inode_t *node)
{
Home |
Main Index |
Thread Index |
Old Index