[Matthew] > Run this (or equivalent code) on an N900 and on an Android. Measure the > screen-off power draw on both. > > int main() { > int i; > while (1) > i++; > return 0; > } I understand the problem such that the scheduler cannot determine whether a certain process should be allowed to schedule or not. It strikes me that the intuitive solution is to group all un-trusted processes/threads/tasks that need to be shut off even if they are scheduling into a control group and let the idle code ignore the processes in this group. Or is there something too naïve about this? Android is already using control groups to give some processes an extra share of CPU and some less IIRC. Yours, Linus Walleij _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm