lkml.org 
[lkml]   [2004]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectKernel Thread in Device Driver
Hi all.

I am working on a device driver with the device interrupts are actaully
serviced in a kernel thread and not in the interrupt handler registered
with the kernel. The interrupt handler justs wakes up the kthread when a
interrupt occurs. This is done as we need to use semaphores while
performing IO to sync the read and writes.
Now I have come across a situation where the kthread is consuming 70% of
CPU time as it is in a loop to service the interrupts happening very
very fast, and it is rearly saying schedule(). The performance of the
application which uses this device to communicate, is not good as it is
not getting CPU at the right time.

Can anybody tell me what may be the problem. Also any suggestions to
overcome this issue?

Thanks in Advance,

Regards,
Kiran Gaitonde.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.024 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site