aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 122a25c1b997..74a1e39e0d3d 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -123,6 +123,7 @@ extern unsigned long nr_running(void);
123extern unsigned long nr_uninterruptible(void); 123extern unsigned long nr_uninterruptible(void);
124extern unsigned long nr_active(void); 124extern unsigned long nr_active(void);
125extern unsigned long nr_iowait(void); 125extern unsigned long nr_iowait(void);
126extern unsigned long weighted_cpuload(const int cpu);
126 127
127 128
128/* 129/*
@@ -558,9 +559,9 @@ enum idle_type
558/* 559/*
559 * sched-domains (multiprocessor balancing) declarations: 560 * sched-domains (multiprocessor balancing) declarations:
560 */ 561 */
561#ifdef CONFIG_SMP
562#define SCHED_LOAD_SCALE 128UL /* increase resolution of load */ 562#define SCHED_LOAD_SCALE 128UL /* increase resolution of load */
563 563
564#ifdef CONFIG_SMP
564#define SD_LOAD_BALANCE 1 /* Do load balancing on this domain. */ 565#define SD_LOAD_BALANCE 1 /* Do load balancing on this domain. */
565#define SD_BALANCE_NEWIDLE 2 /* Balance when about to become idle */ 566#define SD_BALANCE_NEWIDLE 2 /* Balance when about to become idle */
566#define SD_BALANCE_EXEC 4 /* Balance on exec */ 567#define SD_BALANCE_EXEC 4 /* Balance on exec */
@@ -713,9 +714,12 @@ struct task_struct {
713 714
714 int lock_depth; /* BKL lock depth */ 715 int lock_depth; /* BKL lock depth */
715 716
716#if defined(CONFIG_SMP) && defined(__ARCH_WANT_UNLOCKED_CTXSW) 717#ifdef CONFIG_SMP
718#ifdef __ARCH_WANT_UNLOCKED_CTXSW
717 int oncpu; 719 int oncpu;
718#endif 720#endif
721#endif
722 int load_weight; /* for niceness load balancing purposes */
719 int prio, static_prio; 723 int prio, static_prio;
720 struct list_head run_list; 724 struct list_head run_list;
721 prio_array_t *array; 725 prio_array_t *array;