lkml.org 
[lkml]   [2011]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 13/32] nohz: Adaptive tick stop and restart on nohz cpuset
From
Date
On Mon, 2011-08-15 at 17:52 +0200, Frederic Weisbecker wrote:
> +bool cpuset_nohz_can_stop_tick(void)
> +{
> + struct rq *rq;
> +
> + rq = this_rq();
> +
> + /* More than one running task need preemption */
> + if (rq->nr_running > 1)
> + return false;
> +
> + return true;
> +}

int sched_needs_cpu(int cpu), seems the right name, matches the existing
{rcu,printk,arch}_needs_cpu() functions.


\
 
 \ /
  Last update: 2011-08-29 17:31    [W:0.541 / U:1.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site