Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/include const me harder!



details:   https://anonhg.NetBSD.org/src/rev/f9046907a782
branches:  trunk
changeset: 826898:f9046907a782
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 04 23:04:42 2017 +0000

description:
const me harder!

diffstat:

 sys/arch/hppa/include/mutex.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r d437099b334e -r f9046907a782 sys/arch/hppa/include/mutex.h
--- a/sys/arch/hppa/include/mutex.h     Wed Oct 04 22:00:40 2017 +0000
+++ b/sys/arch/hppa/include/mutex.h     Wed Oct 04 23:04:42 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mutex.h,v 1.12 2017/09/24 07:39:28 christos Exp $      */
+/*     $NetBSD: mutex.h,v 1.13 2017/10/04 23:04:42 christos Exp $      */
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -141,13 +141,13 @@
 }
 
 static inline int
-MUTEX_SPIN_P(volatile struct kmutex *mtx)
+MUTEX_SPIN_P(const volatile struct kmutex *mtx)
 {
        return mtx->mtx_owner == MUTEX_SPIN_FLAG;
 }
 
 static inline int
-MUTEX_ADAPTIVE_P(volatile struct kmutex *mtx)
+MUTEX_ADAPTIVE_P(const volatile struct kmutex *mtx)
 {
        return mtx->mtx_owner != MUTEX_SPIN_FLAG;
 }



Home | Main Index | Thread Index | Old Index