22 #include <linux/module.h>
23 #include <linux/kernel.h>
25 #include <linux/slab.h>
31 #define MAX_NAME_LEN 8
73 static int ledtrig_cpu_syscore_suspend(
void)
79 static void ledtrig_cpu_syscore_resume(
void)
84 static void ledtrig_cpu_syscore_shutdown(
void)
89 static struct syscore_ops ledtrig_cpu_syscore_ops = {
90 .shutdown = ledtrig_cpu_syscore_shutdown,
91 .suspend = ledtrig_cpu_syscore_suspend,
92 .resume = ledtrig_cpu_syscore_resume,
95 static int __init ledtrig_cpu_init(
void)
117 pr_info(
"ledtrig-cpu: registered to indicate activity on CPUs\n");
123 static void __exit ledtrig_cpu_exit(
void)