summaryrefslogtreecommitdiffstats
path: root/drivers/idle
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2010-08-12 05:14:21 +0200
committerAlasdair G Kergon <agk@redhat.com>2010-08-12 05:14:21 +0200
commitc96053b767d494d7c30e2be68097ac9defa9403f (patch)
treeb66f185ffd58538f6107f3acf3af38b8aecd7f8a /drivers/idle
parentdm stripe: move sector translation to a function (diff)
downloadlinux-c96053b767d494d7c30e2be68097ac9defa9403f.tar.xz
linux-c96053b767d494d7c30e2be68097ac9defa9403f.zip
dm stripe: optimize sector division
Optimize sector division: If the number of stripes is a power of two, we can do shift and mask instead of division. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions