Skip to content

Commit

Permalink
Merge branch 'bld-3.5' into pf-3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pfactum committed Aug 5, 2012
2 parents f6f3412 + d90e6ee commit 91fc53c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions kernel/sched/bld.h
Expand Up @@ -30,7 +30,6 @@ static inline int select_cpu_for_wakeup(struct task_struct *p, int sd_flags, int
static int bld_select_task_rq(struct task_struct *p, int sd_flags, int wake_flags)
{
struct rq *tmp, *rq;
unsigned long flag;
unsigned int cpu = smp_processor_id();

if (&p->cpus_allowed) {
Expand Down Expand Up @@ -86,7 +85,7 @@ static void bld_track_load_deactivate(struct rq *rq)
if (rq->load.weight <= first->load.weight) {
write_lock_irqsave(&disp_list_lock, flag);
list_del(&rq->disp_load_balance);
list_add_tail(&rq->disp_load_balance, &rq_head);
list_add(&rq->disp_load_balance, &rq_head);
rq->pos = 0; first->pos = 1;
write_unlock_irqrestore(&disp_list_lock, flag);
}
Expand Down
4 changes: 2 additions & 2 deletions kernel/sched/core.c
Expand Up @@ -555,6 +555,7 @@ void resched_cpu(int cpu)
int get_nohz_timer_target(void)
{
int cpu = smp_processor_id();
#ifndef CONFIG_BLD
int i;
struct sched_domain *sd;

Expand All @@ -569,6 +570,7 @@ int get_nohz_timer_target(void)
}
unlock:
rcu_read_unlock();
#endif
return cpu;
}
/*
Expand Down Expand Up @@ -2469,7 +2471,6 @@ calc_load_n(unsigned long load, unsigned long exp,
*/
static void calc_global_nohz(void)
{
#ifndef CONFIG_BLD
long delta, active, n;

if (!time_before(jiffies, calc_load_update + 10)) {
Expand Down Expand Up @@ -2498,7 +2499,6 @@ static void calc_global_nohz(void)
*/
smp_wmb();
calc_load_idx++;
#endif
}
#else /* !CONFIG_NO_HZ */

Expand Down

0 comments on commit 91fc53c

Please sign in to comment.