Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Nove a CTASSERT to global scope



details:   https://anonhg.NetBSD.org/src/rev/7b8abd610e0c
branches:  trunk
changeset: 790001:7b8abd610e0c
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Sep 14 20:53:48 2013 +0000

description:
Nove a CTASSERT to global scope

diffstat:

 sys/kern/kern_timeout.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r b30766cdb711 -r 7b8abd610e0c sys/kern/kern_timeout.c
--- a/sys/kern/kern_timeout.c   Sat Sep 14 20:52:43 2013 +0000
+++ b/sys/kern/kern_timeout.c   Sat Sep 14 20:53:48 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_timeout.c,v 1.46 2013/06/28 01:21:45 matt Exp $   */
+/*     $NetBSD: kern_timeout.c,v 1.47 2013/09/14 20:53:48 martin Exp $ */
 
 /*-
  * Copyright (c) 2003, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_timeout.c,v 1.46 2013/06/28 01:21:45 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_timeout.c,v 1.47 2013/09/14 20:53:48 martin Exp $");
 
 /*
  * Timeouts are kept in a hierarchical timing wheel.  The c_time is the
@@ -229,14 +229,14 @@
  *
  *     Per-CPU initialization.
  */
+CTASSERT(sizeof(callout_impl_t) <= sizeof(callout_t));
+
 void
 callout_init_cpu(struct cpu_info *ci)
 {
        struct callout_cpu *cc;
        int b;
 
-       CTASSERT(sizeof(callout_impl_t) <= sizeof(callout_t));
-
        if ((cc = ci->ci_data.cpu_callout) == NULL) {
                cc = kmem_zalloc(sizeof(*cc), KM_SLEEP);
                if (cc == NULL)



Home | Main Index | Thread Index | Old Index