mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
The monitor container source files contained a declaration and a definition for the rv_monitor variable. The former is superfluous and can be removed. Remove the variable declaration from the template as well as the existing monitor containers. Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20251126104241.291258-9-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
36 lines
775 B
C
36 lines
775 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/init.h>
|
|
#include <linux/rv.h>
|
|
|
|
#define MODULE_NAME "sched"
|
|
|
|
#include "sched.h"
|
|
|
|
struct rv_monitor rv_sched = {
|
|
.name = "sched",
|
|
.description = "container for several scheduler monitor specifications.",
|
|
.enable = NULL,
|
|
.disable = NULL,
|
|
.reset = NULL,
|
|
.enabled = 0,
|
|
};
|
|
|
|
static int __init register_sched(void)
|
|
{
|
|
return rv_register_monitor(&rv_sched, NULL);
|
|
}
|
|
|
|
static void __exit unregister_sched(void)
|
|
{
|
|
rv_unregister_monitor(&rv_sched);
|
|
}
|
|
|
|
module_init(register_sched);
|
|
module_exit(unregister_sched);
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_AUTHOR("Gabriele Monaco <gmonaco@redhat.com>");
|
|
MODULE_DESCRIPTION("sched: container for several scheduler monitor specifications.");
|