Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/prg-localcount2]: src/sys/arch/mipsco/obio Convert to cdevsw_lookup_acqu...
details: https://anonhg.NetBSD.org/src/rev/5bfb6577237d
branches: prg-localcount2
changeset: 823551:5bfb6577237d
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed May 17 03:54:20 2017 +0000
description:
Convert to cdevsw_lookup_acquire()
diffstat:
sys/arch/mipsco/obio/zs_kgdb.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 5cb41c9a0cc5 -r 5bfb6577237d sys/arch/mipsco/obio/zs_kgdb.c
--- a/sys/arch/mipsco/obio/zs_kgdb.c Wed May 17 03:05:44 2017 +0000
+++ b/sys/arch/mipsco/obio/zs_kgdb.c Wed May 17 03:54:20 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs_kgdb.c,v 1.10 2009/03/18 10:22:32 cegger Exp $ */
+/* $NetBSD: zs_kgdb.c,v 1.10.54.1 2017/05/17 03:54:20 pgoyette Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.10 2009/03/18 10:22:32 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.10.54.1 2017/05/17 03:54:20 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -129,10 +129,13 @@
{
struct zschan *zc;
int channel, unit;
+ const struct cdevsw kgbd_cdevsw;
extern const struct cdevsw zstty_cdevsw;
- if (cdevsw_lookup(kgdb_dev) != &zstty_cdevsw)
+ if ((kgdb_cdevsw = cdevsw_lookup_acquire(kgdb_dev)) != &zstty_cdevsw) {
+ cdevsw_release(kgdb_cdevsw);
return;
+ }
unit = (kgdb_dev & 2) ? 2 : 0;
channel = kgdb_dev & 1;
Home |
Main Index |
Thread Index |
Old Index