A method and system for efficiently servicing a peripheral component event.
In one embodiment of the present invention, peripheral component events
are coalesced. The time that a peripheral component event has been stored
is determined. This time interval is then compared to a storage time
threshold. This process continues until the time that a peripheral
component event has been stored meets or exceeds the storage time
threshold. Once time that a peripheral component event has been stored
meets or exceeds the storage time threshold, an interrupt is generated. By
appropriately selecting a storage time threshold, the generation of
interrupts is optimized. As a result, the present invention optimizes the
generation of interrupts, reducing the frequency with which interrupts are
generated, and minimizing the CPU overhead associated with the servicing
of interrupts.