FS#6254 - Scheduler boost control revision

Attached to Project: Rockbox
Opened by Brandon Low (lostlogic) - Saturday, 28 October 2006, 20:05 GMT
Last edited by Brandon Low (lostlogic) - Saturday, 28 October 2006, 20:18 GMT
Task Type Patches
Category Operating System/Drivers
Status Closed
Assigned To Brandon Low (lostlogic)
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This just takes Slasheri's scheduler boost control and makes it (I think) more generally applicable -- the thread scheduler tracks how many threads have requested scheduler managed boosting, removing a thread from that boosted set whenever that thread goes to sleep (BUT not when that thread blocks w/o a timeout). Based on this boosted thread count, the thread scheduler boosts and unboosts the CPU.

I think that this type of boosting can be used to simplify coding with boost, for plugin authors and anyone else. For an interactive plugin, it would be as easy as calling the trigger_cpu_boost function and forgetting about it, because the next time you wait for user input, the CPU will unboost itself.
This task depends upon

Closed by  Brandon Low (lostlogic)
Saturday, 11 November 2006, 18:19 GMT
Reason for closing:  Accepted