sata_nv: Use notifier for completion checks
authorRobert Hancock <hancockr@shaw.ca>
Tue, 20 Feb 2007 01:03:08 +0000 (19:03 -0600)
committerJeff Garzik <jeff@garzik.org>
Wed, 21 Feb 2007 09:58:19 +0000 (04:58 -0500)
commit721449bf0d51213fe3abf0ac3e3561ef9ea7827a
tree7f2180d3f8454216e6a2c1ce9aa8602bfb5b1d61
parentac3d6b869f1f2d8ee1bf7b0ba45cd7daed9b9513
sata_nv: Use notifier for completion checks

The hardware provides us a notifier register that indicates what command
tags have completed. Use this to determine which CPBs to check, rather
than blindly checking all active CPBs. This should provide a minor
performance win, since if the controller has touched some of these
incomplete CPBs, accessing them will likely result in a cache miss.

Signed-off-by: Robert Hancock <hancockr@shaw.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_nv.c