From: Arjan van de Ven Date: Tue, 19 Dec 2006 21:05:53 +0000 (-0800) Subject: [PATCH] user of the jiffies rounding patch: ATA subsystem X-Git-Tag: v2.6.21-rc1~274^2~536 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7a44e910f43cbb5186e7242f4c32b3a5d2fb6666;p=linux-2.6-omap-h63xx.git [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 Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 73902d33576..99face8e4b2 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) for (i = 0; i < ATA_MAX_DEVICES; i++) { struct ata_device *dev = &ap->device[i]; if (ata_dev_enabled(dev) && !dev->sdev) { - queue_delayed_work(ata_aux_wq, &ap->hotplug_task, HZ); + queue_delayed_work(ata_aux_wq, &ap->hotplug_task, + round_jiffies_relative(HZ)); break; } }