| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
#include <linux/kernel.h> |
| 3 |
#include <linux/module.h> |
| 4 |
#include <linux/init.h> |
| 5 |
#include <linux/rv.h> |
| 6 |
|
| 7 |
#define MODULE_NAME "sched" |
| 8 |
|
| 9 |
#include "sched.h" |
| 10 |
|
| 11 |
struct rv_monitor rv_sched = { |
| 12 |
.name = "sched", |
| 13 |
.description = "container for several scheduler monitor specifications.", |
| 14 |
.enable = NULL, |
| 15 |
.disable = NULL, |
| 16 |
.reset = NULL, |
| 17 |
.enabled = 0, |
| 18 |
}; |
| 19 |
|
| 20 |
static int __init register_sched(void) |
| 21 |
{ |
| 22 |
return rv_register_monitor(&rv_sched, NULL); |
| 23 |
} |
| 24 |
|
| 25 |
static void __exit unregister_sched(void) |
| 26 |
{ |
| 27 |
rv_unregister_monitor(&rv_sched); |
| 28 |
} |
| 29 |
|
| 30 |
module_init(register_sched); |
| 31 |
module_exit(unregister_sched); |
| 32 |
|
| 33 |
MODULE_LICENSE("GPL"); |
| 34 |
MODULE_AUTHOR("Gabriele Monaco <[email protected]>"); |
| 35 |
MODULE_DESCRIPTION("sched: container for several scheduler monitor specifications."); |