From: Nish Aravamudan <nish.aravamudan@gmail.com>
To: "Venkatesan, Ganesh" <ganesh.venkatesan@intel.com>
Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: msleep_interruptible() in ethtool ioctl and keyboard input
Date: Fri, 29 Apr 2005 11:40:19 -0700 [thread overview]
Message-ID: <29495f1d050429114048da1847@mail.gmail.com> (raw)
In-Reply-To: <468F3FDA28AA87429AD807992E22D07E05195E08@orsmsx408>
On 4/29/05, Venkatesan, Ganesh <ganesh.venkatesan@intel.com> wrote:
<snip>
> Please send me comments/ideas for further tests/questions for more data.
>
> Following is the logic that implements the blinking:
<snip>
> static int
> e1000_phys_id(struct net_device *netdev, uint32_t data)
> {
> struct e1000_adapter *adapter = netdev->priv;
>
> if(!data || data > (uint32_t)(MAX_SCHEDULE_TIMEOUT / HZ))
> data = (uint32_t)(MAX_SCHEDULE_TIMEOUT / HZ);
>
> if(!adapter->blink_timer.function) {
> init_timer(&adapter->blink_timer);
> adapter->blink_timer.function =
> e1000_led_blink_callback;
> adapter->blink_timer.data = (unsigned long) adapter;
> }
>
> e1000_setup_led(&adapter->hw);
> mod_timer(&adapter->blink_timer, jiffies);
You really want this timer to go off immediately?
Regardless....
> msleep_interruptible(data * 1000);
Does the same issue occur if you revert this change and make it
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(data * HZ);
?
Thanks,
Nish
next prev parent reply other threads:[~2005-04-29 18:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-29 15:54 msleep_interruptible() in ethtool ioctl and keyboard input Venkatesan, Ganesh
2005-04-29 18:40 ` Nish Aravamudan [this message]
2005-04-29 19:07 ` Ganesh Venkatesan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29495f1d050429114048da1847@mail.gmail.com \
--to=nish.aravamudan@gmail.com \
--cc=ganesh.venkatesan@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.