]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb49d0cd1051d9091d42dc59488dbe75766913c1
tree7f2180d3f8454216e6a2c1ce9aa8602bfb5b1d61
parentffa7410fd7537626a8082ae697c5f0211c1a5aa1
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