Question about watchdog
valdis.kletnieks at vt.edu
valdis.kletnieks at vt.edu
Mon Jul 2 11:59:13 EDT 2018
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....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180702/66287861/attachment.sig>
More information about the Kernelnewbies
mailing list