Commit 9bfb52ad authored by Linus Torvalds's avatar Linus Torvalds

Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched

* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
  sched: clean up kernel/sched_stat.h
  sched: clean up overlong line in kernel/sched_debug.c
  sched: clean up, move __sched_text_start/end to sched.h
  sched: clean up sd_alloc_ctl_cpu_table() definition
  softlockup: fix false positives on CONFIG_NOHZ
parents c46f739d f95e0d1c
...@@ -282,6 +282,10 @@ static inline void touch_all_softlockup_watchdogs(void) ...@@ -282,6 +282,10 @@ static inline void touch_all_softlockup_watchdogs(void)
/* Attach to any functions which should be ignored in wchan output. */ /* Attach to any functions which should be ignored in wchan output. */
#define __sched __attribute__((__section__(".sched.text"))) #define __sched __attribute__((__section__(".sched.text")))
/* Linker adds these: start and end of __sched functions */
extern char __sched_text_start[], __sched_text_end[];
/* Is this address in the __sched functions? */ /* Is this address in the __sched functions? */
extern int in_sched_functions(unsigned long addr); extern int in_sched_functions(unsigned long addr);
......
...@@ -5466,7 +5466,7 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd) ...@@ -5466,7 +5466,7 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd)
return table; return table;
} }
static ctl_table * sd_alloc_ctl_cpu_table(int cpu) static ctl_table *sd_alloc_ctl_cpu_table(int cpu)
{ {
struct ctl_table *entry, *table; struct ctl_table *entry, *table;
struct sched_domain *sd; struct sched_domain *sd;
...@@ -6708,9 +6708,6 @@ void __init sched_init_smp(void) ...@@ -6708,9 +6708,6 @@ void __init sched_init_smp(void)
int in_sched_functions(unsigned long addr) int in_sched_functions(unsigned long addr)
{ {
/* Linker adds these: start and end of __sched functions */
extern char __sched_text_start[], __sched_text_end[];
return in_lock_functions(addr) || return in_lock_functions(addr) ||
(addr >= (unsigned long)__sched_text_start (addr >= (unsigned long)__sched_text_start
&& addr < (unsigned long)__sched_text_end); && addr < (unsigned long)__sched_text_end);
......
...@@ -327,10 +327,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m) ...@@ -327,10 +327,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
avg_atom = -1LL; avg_atom = -1LL;
avg_per_cpu = p->se.sum_exec_runtime; avg_per_cpu = p->se.sum_exec_runtime;
if (p->se.nr_migrations) if (p->se.nr_migrations) {
avg_per_cpu = div64_64(avg_per_cpu, p->se.nr_migrations); avg_per_cpu = div64_64(avg_per_cpu,
else p->se.nr_migrations);
} else {
avg_per_cpu = -1LL; avg_per_cpu = -1LL;
}
__PN(avg_atom); __PN(avg_atom);
__PN(avg_per_cpu); __PN(avg_per_cpu);
......
...@@ -52,7 +52,8 @@ static int show_schedstat(struct seq_file *seq, void *v) ...@@ -52,7 +52,8 @@ static int show_schedstat(struct seq_file *seq, void *v)
sd->lb_nobusyq[itype], sd->lb_nobusyq[itype],
sd->lb_nobusyg[itype]); sd->lb_nobusyg[itype]);
} }
seq_printf(seq, " %u %u %u %u %u %u %u %u %u %u %u %u\n", seq_printf(seq,
" %u %u %u %u %u %u %u %u %u %u %u %u\n",
sd->alb_count, sd->alb_failed, sd->alb_pushed, sd->alb_count, sd->alb_failed, sd->alb_pushed,
sd->sbe_count, sd->sbe_balanced, sd->sbe_pushed, sd->sbe_count, sd->sbe_balanced, sd->sbe_pushed,
sd->sbf_count, sd->sbf_balanced, sd->sbf_pushed, sd->sbf_count, sd->sbf_balanced, sd->sbf_pushed,
......
...@@ -133,6 +133,8 @@ void tick_nohz_update_jiffies(void) ...@@ -133,6 +133,8 @@ void tick_nohz_update_jiffies(void)
if (!ts->tick_stopped) if (!ts->tick_stopped)
return; return;
touch_softlockup_watchdog();
cpu_clear(cpu, nohz_cpu_mask); cpu_clear(cpu, nohz_cpu_mask);
now = ktime_get(); now = ktime_get();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment