diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
commit | dd78bb04876f66e967773d6dd03ea9534fe43cc2 (patch) | |
tree | 4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/syscnt.h | |
parent | 85292d947faabe8828810946c7a8067ef228d6fe (diff) |
Switch to initialization operations
Diffstat (limited to 'kern/syscnt.h')
-rw-r--r-- | kern/syscnt.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/kern/syscnt.h b/kern/syscnt.h index 35a291d9..816aa4b9 100644 --- a/kern/syscnt.h +++ b/kern/syscnt.h @@ -27,6 +27,7 @@ #include <stdint.h> #include <kern/atomic.h> +#include <kern/init.h> #include <kern/macros.h> #include <kern/spinlock.h> @@ -43,25 +44,12 @@ struct syscnt; /* - * Initialize the syscnt module. - * - * This module is initialized by architecture-specific code. It is normally - * safe to call this function very early at boot time. - */ -void syscnt_setup(void); - -/* * Initialize and register the given counter. * * The counter is set to 0. */ void syscnt_register(struct syscnt *syscnt, const char *name); -/* - * Register shell commands. - */ -void syscnt_register_shell_cmds(void); - #ifdef ATOMIC_HAVE_64B_OPS static inline void @@ -123,4 +111,10 @@ syscnt_dec(struct syscnt *syscnt) */ void syscnt_info(const char *prefix); +/* + * This init operation provides : + * - registration of system counters + */ +INIT_OP_DECLARE(syscnt_setup); + #endif /* _KERN_SYSCNT_H */ |