Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel/threadpool_tester Fix spurios whitespace (thank...



details:   https://anonhg.NetBSD.org/src/rev/60286b0e834a
branches:  trunk
changeset: 995533:60286b0e834a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Dec 26 22:21:10 2018 +0000

description:
Fix spurios whitespace (thank you substandard vi clones).

diffstat:

 tests/kernel/threadpool_tester/threadpool_tester.c |  34 +++++++++++-----------
 1 files changed, 17 insertions(+), 17 deletions(-)

diffs (127 lines):

diff -r df6bd69f1a63 -r 60286b0e834a tests/kernel/threadpool_tester/threadpool_tester.c
--- a/tests/kernel/threadpool_tester/threadpool_tester.c        Wed Dec 26 22:16:26 2018 +0000
+++ b/tests/kernel/threadpool_tester/threadpool_tester.c        Wed Dec 26 22:21:10 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: threadpool_tester.c,v 1.2 2018/12/26 18:54:19 thorpej Exp $    */
+/*     $NetBSD: threadpool_tester.c,v 1.3 2018/12/26 22:21:10 thorpej Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: threadpool_tester.c,v 1.2 2018/12/26 18:54:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: threadpool_tester.c,v 1.3 2018/12/26 22:21:10 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -79,17 +79,17 @@
        error = sysctl_lookup(SYSCTLFN_CALL(&node));
        if (error || newp == NULL)
                return error;
-       
+
        if (! pri_is_valid(val))
                return EINVAL;
-       
+
        error = threadpool_get(&pool, val);
        if (error) {
                TP_LOG(("%s: threadpool_get(..., %d) failed -> %d\n",
                    __func__, val, error));
                return error;
        }
-       
+
        mutex_enter(&ctx->ctx_mutex);
        if (ctx->ctx_unbound[pri_to_idx(val)] == NULL)
                ctx->ctx_unbound[pri_to_idx(val)] = pool;
@@ -128,10 +128,10 @@
        error = sysctl_lookup(SYSCTLFN_CALL(&node));
        if (error || newp == NULL)
                return error;
-       
+
        if (! pri_is_valid(val))
                return EINVAL;
-       
+
        mutex_enter(&ctx->ctx_mutex);
        /* We only ever maintain a single reference. */
        pool = ctx->ctx_unbound[pri_to_idx(val)];
@@ -167,7 +167,7 @@
        error = sysctl_lookup(SYSCTLFN_CALL(&node));
        if (error || newp == NULL)
                return error;
-       
+
        if (! pri_is_valid(val))
                return EINVAL;
 
@@ -204,17 +204,17 @@
        error = sysctl_lookup(SYSCTLFN_CALL(&node));
        if (error || newp == NULL)
                return error;
-       
+
        if (! pri_is_valid(val))
                return EINVAL;
-       
+
        error = threadpool_percpu_get(&pcpu, val);
        if (error) {
                TP_LOG(("%s: threadpool_percpu_get(..., %d) failed -> %d\n",
                    __func__, val, error));
                return error;
        }
-       
+
        mutex_enter(&ctx->ctx_mutex);
        if (ctx->ctx_percpu[pri_to_idx(val)] == NULL)
                ctx->ctx_percpu[pri_to_idx(val)] = pcpu;
@@ -253,10 +253,10 @@
        error = sysctl_lookup(SYSCTLFN_CALL(&node));
        if (error || newp == NULL)
                return error;
-       
+
        if (! pri_is_valid(val))
                return EINVAL;
-       
+
        mutex_enter(&ctx->ctx_mutex);
        /* We only ever maintain a single reference. */
        pcpu = ctx->ctx_percpu[pri_to_idx(val)];
@@ -293,7 +293,7 @@
        error = sysctl_lookup(SYSCTLFN_CALL(&node));
        if (error || newp == NULL)
                return error;
-       
+
        if (! pri_is_valid(val))
                return EINVAL;
 
@@ -475,7 +475,7 @@
        mutex_destroy(&tester_ctx.ctx_mutex);
 
        sysctl_teardown(&tester_ctx.ctx_sysctllog);
-       
+
        return 0;
 }
 
@@ -488,11 +488,11 @@
        case MODULE_CMD_INIT:
                error = threadpool_tester_init();
                break;
-       
+
        case MODULE_CMD_FINI:
                error = threadpool_tester_fini();
                break;
-       
+
        case MODULE_CMD_STAT:
        default:
                error = ENOTTY;



Home | Main Index | Thread Index | Old Index