Reputation: 79
I am in need of help regarding softlockup in Linux Kernel.
I have developed a kernel driver for a Hardware, where I have to wait or loop (the time delay provided from the user application) for a specified amount of time (say example the delay time is 1 or 20 or ... minutes) to perform some tasks. I am getting softlockup message from the kernel whenever I am setting the delay time more than 1 minutes.
Is there a way to avoid the lockup messages from the kernel. I have used kernel sleep calls such as msleep, ssleep, etc also I have implemented a logic to wait for the specified time.
Any advice would be of great help. Thanks in advance.
Regards, Srinivasa Raghavan.
Upvotes: 2
Views: 110
Reputation: 19395
See delays - Information on the various kernel delay / sleep mechanisms. For your case:
SLEEPING FOR LARGER MSECS ( 10ms+ )
* Use msleep or possibly msleep_interruptible
If you are getting softlockup message from the kernel whenever … setting the delay time more than 1 minutes still, you could try to repeatedly wait for 1 minute.
Upvotes: 1