pm_qos: Reimplement using plists
authorJames Bottomley <James.Bottomley@suse.de>
Mon, 19 Jul 2010 00:00:18 +0000 (02:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 19 Jul 2010 00:00:18 +0000 (02:00 +0200)
commit5f279845f9d684661563894d44729a0c706375b4
treede26a630f8b573ccf725a48652700504d1088d8d
parent12e4d0cc2e0a776a526c93bb2fcb9267abc6e0b1
pm_qos: Reimplement using plists

A lot of the pm_qos extremal value handling is really duplicating what a
priority ordered list does, just in a less efficient fashion.  Simply
redoing the implementation in terms of a plist gets rid of a lot of this
junk (although there are several other strange things that could do with
tidying up, like pm_qos_request_list has to carry the pm_qos_class with
every node, simply because it doesn't get passed in to
pm_qos_update_request even though every caller knows full well what
parameter it's updating).

I think this redo is a win independent of android, so we should do
something like this now.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: mark gross <markgross@thegnar.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/pm_qos_params.c