]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
16usec 10
authorseantywork <seantywork@gmail.com>
Thu, 5 Jun 2025 12:50:37 +0000 (13:50 +0100)
committerseantywork <seantywork@gmail.com>
Thu, 5 Jun 2025 12:50:37 +0000 (13:50 +0100)
kgpio-irqsock/kgpio_irqsk.c

index 42212ac2b679d6b48bb50209ff095ee24d4b8183..336e8a8a52a43b70d8dbb7ea5b6d97174ea86b1e 100644 (file)
@@ -53,12 +53,9 @@ void job_handler(struct work_struct* work){
 
     printk(KERN_INFO "waitqueue handler: %s\n", __FUNCTION__);
 
-       for (int i = 0 ; i < 5; i++){
+       printk(KERN_INFO "waitqueue handler waiting for: %d...\n", i);
 
-               printk(KERN_INFO "waitqueue handler waiting for: %d...\n", i);
-
-               msleep(1000);
-       }
+       msleep(100);
 
        printk(KERN_INFO "sending ctl start preamble\n");
 
@@ -331,6 +328,7 @@ int __init ksock_gpio_init(void) {
 
                        wait_event_interruptible(this_wq, condition != 0);
 
+                       condition = 0;
                }
 
                printk(KERN_INFO "job done\n");