Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Constify kcpuset_countset() and cpu_index() parameters.
details: https://anonhg.NetBSD.org/src/rev/b4501cc07384
branches: trunk
changeset: 329328:b4501cc07384
user: rmind <rmind%NetBSD.org@localhost>
date: Mon May 19 20:39:23 2014 +0000
description:
Constify kcpuset_countset() and cpu_index() parameters.
diffstat:
sys/kern/subr_kcpuset.c | 6 +++---
sys/sys/cpu.h | 4 ++--
sys/sys/kcpuset.h | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 61d31be455cf -r b4501cc07384 sys/kern/subr_kcpuset.c
--- a/sys/kern/subr_kcpuset.c Mon May 19 19:54:12 2014 +0000
+++ b/sys/kern/subr_kcpuset.c Mon May 19 20:39:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kcpuset.c,v 1.10 2013/10/25 11:35:55 martin Exp $ */
+/* $NetBSD: subr_kcpuset.c,v 1.11 2014/05/19 20:39:23 rmind Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kcpuset.c,v 1.10 2013/10/25 11:35:55 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kcpuset.c,v 1.11 2014/05/19 20:39:23 rmind Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -480,7 +480,7 @@
}
int
-kcpuset_countset(kcpuset_t *kcp)
+kcpuset_countset(const kcpuset_t *kcp)
{
int count = 0;
diff -r 61d31be455cf -r b4501cc07384 sys/sys/cpu.h
--- a/sys/sys/cpu.h Mon May 19 19:54:12 2014 +0000
+++ b/sys/sys/cpu.h Mon May 19 20:39:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.40 2014/03/24 20:07:40 christos Exp $ */
+/* $NetBSD: cpu.h,v 1.41 2014/05/19 20:39:23 rmind Exp $ */
/*-
* Copyright (c) 2007 YAMAMOTO Takashi,
@@ -101,7 +101,7 @@
extern kcpuset_t *kcpuset_running;
static inline u_int
-cpu_index(struct cpu_info *ci)
+cpu_index(const struct cpu_info *ci)
{
return ci->ci_index;
}
diff -r 61d31be455cf -r b4501cc07384 sys/sys/kcpuset.h
--- a/sys/sys/kcpuset.h Mon May 19 19:54:12 2014 +0000
+++ b/sys/sys/kcpuset.h Mon May 19 20:39:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kcpuset.h,v 1.10 2014/03/18 18:20:44 riastradh Exp $ */
+/* $NetBSD: kcpuset.h,v 1.11 2014/05/19 20:39:23 rmind Exp $ */
/*-
* Copyright (c) 2008, 2011 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
void kcpuset_intersect(kcpuset_t *, const kcpuset_t *);
void kcpuset_merge(kcpuset_t *, const kcpuset_t *);
void kcpuset_remove(kcpuset_t *, const kcpuset_t *);
-int kcpuset_countset(kcpuset_t *);
+int kcpuset_countset(const kcpuset_t *);
cpuid_t kcpuset_ffs(const kcpuset_t *);
cpuid_t kcpuset_ffs_intersecting(const kcpuset_t *, const kcpuset_t *);
Home |
Main Index |
Thread Index |
Old Index