diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2006-12-19 16:05:53 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 17:39:29 -0500 |
commit | 7a44e910f43cbb5186e7242f4c32b3a5d2fb6666 (patch) | |
tree | 94d0831a769d73222c792464f8ae05aaae0ba62a | |
parent | d4013f07bd5380178bf28ef1cd76649779367288 (diff) |
[PATCH] user of the jiffies rounding patch: ATA subsystem
This patch introduces users of the round_jiffies() function: ATA subsystem
This delayed work is of the "about once a second" variety and can be rounded
to coincide with other wakers.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/ata/libata-scsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 73902d335767..99face8e4b23 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -3059,7 +3059,8 @@ void ata_scsi_hotplug(struct work_struct *work) | |||
3059 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 3059 | for (i = 0; i < ATA_MAX_DEVICES; i++) { |
3060 | struct ata_device *dev = &ap->device[i]; | 3060 | struct ata_device *dev = &ap->device[i]; |
3061 | if (ata_dev_enabled(dev) && !dev->sdev) { | 3061 | if (ata_dev_enabled(dev) && !dev->sdev) { |
3062 | queue_delayed_work(ata_aux_wq, &ap->hotplug_task, HZ); | 3062 | queue_delayed_work(ata_aux_wq, &ap->hotplug_task, |
3063 | round_jiffies_relative(HZ)); | ||
3063 | break; | 3064 | break; |
3064 | } | 3065 | } |
3065 | } | 3066 | } |