Question about watchdog

bing zhu zhubohong12 at gmail.com
Sat Jul 7 07:27:54 EDT 2018


you mean like this ? i think im doing it right finally ,thank you !

2018-07-02 23:59 GMT+08:00 <valdis.kletnieks at vt.edu>:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180707/6d75476e/attachment.html>


More information about the Kernelnewbies mailing list