plist: Add plist_last
authorJames Bottomley <James.Bottomley@suse.de>
Thu, 1 Jul 2010 19:46:36 +0000 (21:46 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 18 Jul 2010 23:58:48 +0000 (01:58 +0200)
commit12e4d0cc2e0a776a526c93bb2fcb9267abc6e0b1
treeb90af0838639dc21da686960d0ae7eaa9c5fd06a
parentc125e96f044427f38d106fab7bc5e4a5e6a18262
plist: Add plist_last

plist is currently used by the scheduler, which only needs to know the
highest item in the list.  This adds plist_last which allows you to
find the lowest.  This is necessary for using plists to implement a
fast search of dynamic ranges in pm_qos which can have both highest
and lowest criteria.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
include/linux/plist.h