summaryrefslogtreecommitdiff
path: root/kern/work.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-03-16 22:29:28 +0100
committerRichard Braun <rbraun@sceen.net>2017-03-16 22:29:28 +0100
commiteabb576625cf6a130443809d5d80cec7517dff1a (patch)
tree5265d9bf083d9d37d220ca3511ac695016f72b4c /kern/work.c
parent12c80cea26c42b90b607872b648bfeebc3881bf0 (diff)
Update system counter names
Now that event counters have been replaced with system counters, drop the convention of naming the counter as the event it tracks.
Diffstat (limited to 'kern/work.c')
-rw-r--r--kern/work.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kern/work.c b/kern/work.c
index 3783df42..f6309e79 100644
--- a/kern/work.c
+++ b/kern/work.c
@@ -91,7 +91,7 @@ struct work_pool {
struct work_queue queue0;
struct work_queue queue1;
struct work_thread *manager;
- struct syscnt sc_transfer;
+ struct syscnt sc_transfers;
unsigned int cpu;
unsigned int max_threads;
unsigned int nr_threads;
@@ -173,8 +173,8 @@ work_pool_init(struct work_pool *pool, unsigned int cpu, int flags)
} else {
nr_cpus = 1;
suffix = (flags & WORK_PF_HIGHPRIO) ? "h" : "";
- snprintf(name, sizeof(name), "work_transfer/%u%s", cpu, suffix);
- syscnt_register(&pool->sc_transfer, name);
+ snprintf(name, sizeof(name), "work_transfers/%u%s", cpu, suffix);
+ syscnt_register(&pool->sc_transfers, name);
pool->cpu = cpu;
}
@@ -275,7 +275,7 @@ work_pool_shift_queues(struct work_pool *pool, struct work_queue *old_queue)
work_queue_init(&pool->queue0);
if (work_queue_nr_works(old_queue) != 0) {
- syscnt_inc(&pool->sc_transfer);
+ syscnt_inc(&pool->sc_transfers);
}
}