1
0
mirror of https://github.com/bashrc/LKMPG.git synced 2018-06-11 03:06:54 +02:00

Move to abbreviated printk macros #6

This commit is contained in:
Bob Mottram
2018-01-02 21:39:16 +00:00
parent 1965bd2710
commit eefaeb8ab5
35 changed files with 5141 additions and 5030 deletions

View File

@@ -5,25 +5,25 @@
static void tasklet_fn(unsigned long data)
{
printk("Example tasklet starts\n");
pr_info("Example tasklet starts\n");
mdelay(5000);
printk("Example tasklet ends\n");
pr_info("Example tasklet ends\n");
}
DECLARE_TASKLET(mytask, tasklet_fn, 0L);
static int example_tasklet_init(void)
{
printk("tasklet example init\n");
pr_info("tasklet example init\n");
tasklet_schedule(&mytask);
mdelay(200);
printk("Example tasklet init continues...\n");
pr_info("Example tasklet init continues...\n");
return 0;
}
static void example_tasklet_exit(void)
{
printk("tasklet example exit\n");
pr_info("tasklet example exit\n");
tasklet_kill(&mytask);
}