Re: suspend blockers & Android integration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, 4 Jun 2010, Ingo Molnar wrote:
> > 
> >    This allows a task to 'exclude' other tasks that dont have low-latency 
> >    requirements. Crappy apps would have a large latency value, so they'd
> >    be idled out when a privileged task sets the exclusion level low enough.
> 
> Quite frankly, this sounds fundamentally broken.
>
> Think deadlock. The high-latency task got a lock, and now you're excluding 
> it because it scheduled away.

Mail was a bit too long already so i trimmed it at the wrong place :-/

What you say is absolutely true, hence this would be driven via sched_tick() + 
TIF notifiers - i.e. only ever treat user-mode tasks as 'idle-able'. This can 
be done with no overhead to the regular fastpaths.

The TIF notifier would be the one scheduling to idle - and would thus do it 
only to user-mode tasks.

Thanks,

	Ingo
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux