libata: add @ap to ata_wait_register() and introduce ata_msleep()
authorTejun Heo <tj@kernel.org>
Mon, 6 Sep 2010 15:56:29 +0000 (17:56 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 22 Oct 2010 00:21:05 +0000 (20:21 -0400)
commit97750cebb3000a9cc08f8ce8dc8c7143be7d7201
tree04220b8a8ed3f353e3e0023805b32e7d746dc6f3
parenta97c40068fab5d85c4241451fc312cb9025d7e6c
libata: add @ap to ata_wait_register() and introduce ata_msleep()

Add optional @ap argument to ata_wait_register() and replace msleep()
calls with ata_msleep() which take optional @ap in addition to the
duration.  These will be used to implement EH exclusion.

This patch doesn't cause any behavior difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
12 files changed:
drivers/ata/libahci.c
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
drivers/ata/libata-sff.c
drivers/ata/pata_bf54x.c
drivers/ata/pata_samsung_cf.c
drivers/ata/pata_scc.c
drivers/ata/sata_fsl.c
drivers/ata/sata_inic162x.c
drivers/ata/sata_sil24.c
drivers/ata/sata_via.c
include/linux/libata.h