lkml.org 
[lkml]   [2010]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/12] irq: implement irq_schedule_poll()
On Sun, 13 Jun 2010 17:31:32 +0200
Tejun Heo <tj@kernel.org> wrote:

> Implement and use irq_schedule_poll() to schedule desc->poll_timer
> instead of calling mod_timer directly. irq_schedule_poll() is called
> with desc->lock held and schedules the timer iff necessary - ie. if
> the timer is offline or scheduled to expire later than requested.
> This will be used to share desc->poll_timer.

One quick question...

> diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
> index 0bce0e3..0b8fd0a 100644
> --- a/kernel/irq/spurious.c
> +++ b/kernel/irq/spurious.c
> @@ -23,6 +23,8 @@ enum {
>
> /* IRQ polling common parameters */
> IRQ_POLL_INTV = HZ / 100, /* from the good ol' 100HZ tick */
> +
> + IRQ_POLL_SLACK = HZ / 1000, /* 10% slack */
> };

Why would IRQ_POLL_SLACK be anything other than zero for HZ < 1000?
It seems like you'd get no slack at all on most systems. Am I missing
something?

Thanks,

jon


\
 
 \ /
  Last update: 2010-06-15 19:43    [W:1.285 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site