On Sun, 01 Jul 2018 20:44:29 +0800, bing zhu said: > say use kthread_create func ,my question is :how can i make this thread to > run on a cpu and never get switched or scheduled , there is a > while(1).....structure in that thread i need it to do work That's almost certainly a result of a poor design. What problem were you trying to solve by wrapping a 'while(1)' around in-kernel code? > comes with errors like "NMI watchdog: BUG: soft lockup - CPU#0 stuck for > 23s! [test thread :1881]",i understand there is a watchdog but is there > anyway i can feed the dog myself and let my thread have cpu as much as i > want ? There are ways. But you probably should figure out how to fix your code so feeding the watchdog isn't needed....
Attachment:
pgpY8nv9KbFji.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies