Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a44e910 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Jeff Garzik
Browse files

[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: default avatarArjan van de Ven <arjan@linux.intel.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent d4013f07
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}