Instead of using the ata idle callback, manually poll the disk state
commitf4c4f50c46c9ddd8fc4f86b9b0c9e6d99752e52f
authorNicolas Pennequin <nicolas@nicolas-laptop.(none)>
Tue, 23 Oct 2007 16:02:50 +0000 (23 18:02 +0200)
committerlearman <learman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 25 Oct 2007 19:18:20 +0000 (25 19:18 +0000)
treeef6ff28bfbfc7cf73042c725b25cbbceb6be9e0e
parente023bd74c05f1c01f5859462d99eb076e8df766a
Instead of using the ata idle callback, manually poll the disk state

This saves spinning time because the callback was actually called at the
last moment before spinning the disk down. By manually polling the state
of the disk, we can fill the buffer as soon as possible and save power by
sending the disk to sleep earlier.
apps/buffering.c