sched/core changes for v2.6.35
Subsystems (16)
Linus,
Please pull the latest sched-core-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git sched-core-for-linus
One notable user visible feature is that it should fix the long-standing (and serious) ondemand governor performance problem Andrew reported which caused him 30-40% slowdowns on his laptop.
Thanks,
Ingo
------------------>
Arjan van de Ven (8):
sched: Add a comment to get_cpu_idle_time_us()
sched: Introduce a function to update the idle statistics
sched: Update the idle statistics in get_cpu_idle_time_us()
sched: Fold updating of the last_update_time_info into update_ts_time_stats()
sched: Eliminate the ts->idle_lastupdate field
sched: Intoduce get_cpu_iowait_time_us()
ondemand: Solve a big performance issue by counting IOWAIT time as busy
ondemand: Make the iowait-is-busy time a sysfs tunable
Changli Gao (1):
sched, wait: Use wrapper functions
Dan Carpenter (1):
sched: Remove some dead code
Ingo Molnar (1):
stop_machine: Move local variable closer to the usage site in cpu_stop_cpu_callback()
Li Zefan (3):
sched: Remove remaining USER_SCHED code
sched: Remove USER_SCHED from documentation
sched: Remove a stale comment
Lucas De Marchi (1):
sched: Implement group scheduler statistics in one struct
Mike Galbraith (13):
sched: Rate-limit nohz
sched: Remove avg_wakeup
sched: Remove avg_overlap
sched: Cleanup/optimize clock updates
sched: Tweak sched_latency and min_granularity
sched: Fix select_idle_sibling()
sched: Remove NORMALIZED_SLEEPER
sched: Remove FAIR_SLEEPERS feature
sched: Remove WAKEUP_SYNC feature
sched: Remove SYNC_WAKEUPS feature
sched: Remove ASYM_GRAN feature
sched: Remove AFFINE_WAKEUPS feature
sched: Fix UP update_avg() build warning
Oleg Nesterov (6):
sched: Kill the broken and deadlockable cpuset_lock/cpuset_cpus_allowed_locked code
sched: move_task_off_dead_cpu(): Take rq->lock around select_fallback_rq()
sched: move_task_off_dead_cpu(): Remove retry logic
sched: sched_exec(): Remove the select_fallback_rq() logic
sched: _cpu_down(): Don't play with current->cpus_allowed
sched: Make select_fallback_rq() cpuset friendly
Paul E. McKenney (2):
sched: correctly place paranioa memory barriers in synchronize_sched_expedited()
rcu: need barrier() in UP synchronize_sched_expedited()
Peter Zijlstra (7):
sched: Fix TASK_WAKING vs fork deadlock
sched: Optimize task_rq_lock()
sched: Fix nr_uninterruptible count
sched: Add enqueue/dequeue flags
sched: Cure load average vs NO_HZ woes
sched: Pre-compute cpumask_weight(sched_domain_span(sd))
sched: Remove rq argument to the tracepoints
Suresh Siddha (1):
sched: Fix select_idle_sibling() logic in select_task_rq_fair()
Tejun Heo (5):
cpu_stop: implement stop_cpu[s]()
stop_machine: reimplement using cpu_stop
sched: replace migration_thread with cpu_stop
sched: kill paranoia check in synchronize_sched_expedited()
cpu_stop: add dummy implementation for UP
Documentation/RCU/torture.txt | 10 - Documentation/scheduler/sched-design-CFS.txt | 54 +-- Documentation/scheduler/sched-rt-group.txt | 20 +- arch/s390/kernel/time.c | 1 - drivers/cpufreq/cpufreq_ondemand.c | 75 +++- drivers/xen/manage.c | 14 +- fs/eventpoll.c | 3 +- include/linux/cpuset.h | 16 +- include/linux/rcutiny.h | 2 - include/linux/rcutree.h | 1 - include/linux/sched.h | 70 ++-- include/linux/stop_machine.h | 122 ++++- include/linux/tick.h | 5 +- include/linux/wait.h | 35 +- include/trace/events/sched.h | 32 +- init/Kconfig | 3 +- kernel/Makefile | 2 +- kernel/capability.c | 1 - kernel/cgroup.c | 2 +- kernel/cpu.c | 26 +- kernel/cpuset.c | 67 ++- kernel/cred-internals.h | 21 - kernel/cred.c | 3 - kernel/exit.c | 1 - kernel/module.c | 14 +- kernel/rcutorture.c | 2 +- kernel/sched.c | 726 ++++++++++---------------- kernel/sched_debug.c | 108 ++--- kernel/sched_fair.c | 350 ++++++------- kernel/sched_features.h | 55 -- kernel/sched_idletask.c | 8 +- kernel/sched_rt.c | 15 +- kernel/stop_machine.c | 537 +++++++++++++++----- kernel/time/tick-sched.c | 84 +++- kernel/time/timer_list.c | 1 + kernel/trace/ftrace.c | 3 +- kernel/trace/trace_sched_switch.c | 5 +- kernel/trace/trace_sched_wakeup.c | 5 +- kernel/user.c | 11 - 39 files changed, 1251 insertions(+), 1259 deletions(-) delete mode 100644 kernel/cred-internals.h
Documentation/RCU/torture.txt +0 -10
@@ -182,16 +182,6 @@ Similarly, sched_expedited RCU provides the following: sched_expedited-torture: Reader Pipe: 12660320201 95875 0 0 0 0 0 0 0 0 0 sched_expedited-torture: Reader Batch: 12660424885 0 0 0 0 0 0 0 0 0 0 sched_expedited-torture: Free-Block Circulation: 1090795 1090795 1090794 1090793 1090792 1090791 1090790 1090789 1090788 1090787 0 - state: -1 / 0:0 3:0 4:0 - -As before, the first four lines are similar to those for RCU. -The last line shows the task-migration state. The first number is --1 if synchronize_sched_expedited() is idle, -2 if in the process of -posting wakeups to the migration kthreads, and N when waiting on CPU N. -Each of the colon-separated fields following the "/" is a CPU:state pair. -Valid states are "0" for idle, "1" for waiting for quiescent state, -"2" for passed through quiescent state, and "3" when a race with a -CPU-hotplug event forces use of the synchronize_sched() primitive. USAGE
Documentation/scheduler/sched-design-CFS.txt +3 -51
72 lines not on this page · raw message
Documentation/scheduler/sched-rt-group.txt +4 -16
@@ -126,23 +126,12 @@ priority! 2.3 Basis for grouping tasks ---------------------------- -There are two compile-time settings for allocating CPU bandwidth. These are -configured using the "Basis for grouping tasks" multiple choice menu under -General setup > Group CPU Scheduler: - -a. CONFIG_USER_SCHED (aka "Basis for grouping tasks" = "user id") - -This lets you use the virtual files under -"/sys/kernel/uids/<uid>/cpu_rt_runtime_us" to control he CPU time reserved for -each user . - -The other option is: - -.o CONFIG_CGROUP_SCHED (aka "Basis for grouping tasks" = "Control groups") +Enabling CONFIG_RT_GROUP_SCHED lets you explicitly allocate real +CPU bandwidth to task groups. This uses the /cgroup virtual file system and "/cgroup/<cgroup>/cpu.rt_runtime_us" to control the CPU time reserved for each -control group instead. +control group. For more information on working with control groups, you should read Documentation/cgroups/cgroups.txt as well.
@@ -161,8 +150,7 @@ For now, this can be simplified to just the following (but see Future plans): =============== There is work in progress to make the scheduling period for each group -("/sys/kernel/uids/<uid>/cpu_rt_period_us" or -"/cgroup/<cgroup>/cpu.rt_period_us" respectively) configurable as well. +("/cgroup/<cgroup>/cpu.rt_period_us") configurable as well. The constraint on the period is that a subgroup must have a smaller or equal period to its parent. But realistically its not very useful _yet_
arch/s390/kernel/time.c +0 -1
@@ -391,7 +391,6 @@ static void __init time_init_wq(void)if (time_sync_wq)return ; time_sync_wq =create_singlethread_workqueue ("timesync" ); -stop_machine_create (); }/*
drivers/cpufreq/cpufreq_ondemand.c +73 -2
153 lines not on this page · raw message
drivers/xen/manage.c +2 -12
@@ -80,12 +80,6 @@ static void do_suspend(void) shutting_down =SHUTDOWN_SUSPEND ; - err =stop_machine_create (); -if (err) { -printk (KERN_ERR "xen suspend: failed to setup stop_machine %d\n" , err); - goto out; - } -#ifdef CONFIG_PREEMPT /* If the kernel is preemptible, we need to freeze all the processes to prevent them from being in the middle of a pagetable update
@@ -93,7 +87,7 @@ static void do_suspend(void) err =freeze_processes ();if (err) {printk (KERN_ERR "xen suspend: freeze failed %d\n" , err); - goto out_destroy_sm; + goto out; }#endif
@@ -136,12 +130,8 @@ out_resume: out_thaw: #ifdef CONFIG_PREEMPTthaw_processes (); - -out_destroy_sm: -#endif -stop_machine_destroy (); - out: +#endif shutting_down =SHUTDOWN_INVALID ; }#endif /* CONFIG_PM_SLEEP */
fs/eventpoll.c +1 -2
@@ -1140,8 +1140,7 @@ retry:* ep_poll_callback() when events will become available. */ init_waitqueue_entry (&wait, current); - wait.flags |=WQ_FLAG_EXCLUSIVE ; -__add_wait_queue (&ep->wq, &wait); +__add_wait_queue_exclusive (&ep->wq, &wait);for (;;) {/*
include/linux/cpuset.h +5 -11
@@ -21,8 +21,7 @@ extern int number_of_cpusets; /* How many cpusets are defined in system? */extern int cpuset_init (void );extern void cpuset_init_smp (void );extern void cpuset_cpus_allowed (struct task_struct *p,struct cpumask *mask); -extern void cpuset_cpus_allowed_locked (struct task_struct *p, -struct cpumask *mask); +extern int cpuset_cpus_allowed_fallback (struct task_struct *p);extern nodemask_t cpuset_mems_allowed (struct task_struct *p);#define cpuset_current_mems_allowed (current->mems_allowed)void cpuset_init_current_mems_allowed (void );
@@ -69,9 +68,6 @@ struct seq_file;extern void cpuset_task_status_allowed (struct seq_file *m,struct task_struct *task); -extern void cpuset_lock (void ); -extern void cpuset_unlock (void ); -extern int cpuset_mem_spread_node (void );static inline int cpuset_do_page_mem_spread (void )
@@ -105,10 +101,11 @@ static inline void cpuset_cpus_allowed(struct task_struct *p, {cpumask_copy (mask, cpu_possible_mask); } -static inline void cpuset_cpus_allowed_locked (struct task_struct *p, -struct cpumask *mask) + +static inline int cpuset_cpus_allowed_fallback (struct task_struct *p) { -cpumask_copy (mask, cpu_possible_mask); +cpumask_copy (&p->cpus_allowed, cpu_possible_mask); +return cpumask_any (cpu_active_mask); }static inline nodemask_t cpuset_mems_allowed (struct task_struct *p)
@@ -157,9 +154,6 @@ static inline void cpuset_task_status_allowed(struct seq_file *m, { } -static inline void cpuset_lock (void ) {} -static inline void cpuset_unlock (void ) {} -static inline int cpuset_mem_spread_node (void ) {return 0 ;
include/linux/rcutiny.h +0 -2
@@ -60,8 +60,6 @@ static inline long rcu_batches_completed_bh(void)return 0 ; } -extern int rcu_expedited_torture_stats (char *page); -static inline void rcu_force_quiescent_state (void ) { }
include/linux/rcutree.h +0 -1
@@ -35,7 +35,6 @@ struct notifier_block;extern void rcu_sched_qs (int cpu);extern void rcu_bh_qs (int cpu);extern int rcu_needs_cpu (int cpu); -extern int rcu_expedited_torture_stats (char *page);#ifdef CONFIG_TREE_PREEMPT_RCU
include/linux/sched.h +37 -33
121 lines not on this page · raw message
include/linux/stop_machine.h +95 -27
140 lines not on this page · raw message
include/linux/tick.h +4 -1
@@ -42,6 +42,7 @@ enum tick_nohz_mode {* @idle_waketime: Time when the idle was interrupted * @idle_exittime: Time when the idle state was left * @idle_sleeptime: Sum of the time slept in idle with sched tick stopped +* @iowait_sleeptime: Sum of the time slept in idle with sched tick stopped, with IO outstanding * @sleep_length: Duration of the current idle sleep * @do_timer_lst: CPU was the last one doing do_timer before going idle */
@@ -60,7 +61,7 @@ struct tick_sched {ktime_t idle_waketime;ktime_t idle_exittime;ktime_t idle_sleeptime; -ktime_t idle_lastupdate; +ktime_t iowait_sleeptime;ktime_t sleep_length;unsigned long last_jiffies;unsigned long next_jiffies;
@@ -124,6 +125,7 @@ extern void tick_nohz_stop_sched_tick(int inidle);extern void tick_nohz_restart_sched_tick (void );extern ktime_t tick_nohz_get_sleep_length (void );extern u64 get_cpu_idle_time_us (int cpu,u64 *last_update_time); +extern u64 get_cpu_iowait_time_us (int cpu,u64 *last_update_time);# else static inline void tick_nohz_stop_sched_tick (int inidle) { }static inline void tick_nohz_restart_sched_tick (void ) { }
@@ -134,6 +136,7 @@ static inline ktime_t tick_nohz_get_sleep_length(void)return len; }static inline u64 get_cpu_idle_time_us (int cpu,u64 *unused) {return -1 ; } +static inline u64 get_cpu_iowait_time_us (int cpu,u64 *unused) {return -1 ; }# endif /* !NO_HZ */ #endif
include/linux/wait.h +15 -20
@@ -127,12 +127,26 @@ static inline void __add_wait_queue(wait_queue_head_t *head, wait_queue_t *new)/* * Used for wake-one threads: */ +static inline void __add_wait_queue_exclusive (wait_queue_head_t *q, +wait_queue_t *wait) +{ + wait->flags |=WQ_FLAG_EXCLUSIVE ; +__add_wait_queue (q, wait); +} +static inline void __add_wait_queue_tail (wait_queue_head_t *head, -wait_queue_t *new) +wait_queue_t *new) {list_add_tail (&new->task_list, &head->task_list); } +static inline void __add_wait_queue_tail_exclusive (wait_queue_head_t *q, +wait_queue_t *wait) +{ + wait->flags |=WQ_FLAG_EXCLUSIVE ; +__add_wait_queue_tail (q, wait); +} +static inline void __remove_wait_queue (wait_queue_head_t *head,wait_queue_t *old) {
@@ -404,25 +418,6 @@ do { \ })/* -* Must be called with the spinlock in the wait_queue_head_t held. -*/ -static inline void add_wait_queue_exclusive_locked (wait_queue_head_t *q, -wait_queue_t * wait) -{ - wait->flags |=WQ_FLAG_EXCLUSIVE ; -__add_wait_queue_tail (q, wait); -} - -/* -* Must be called with the spinlock in the wait_queue_head_t held. -*/ -static inline void remove_wait_queue_locked (wait_queue_head_t *q, -wait_queue_t * wait) -{ -__remove_wait_queue (q, wait); -} - -/* * These are the old interfaces to sleep waiting for an event. * They are racy. DO NOT use them, use the wait_event* interfaces above. * We plan to remove these interfaces.
include/trace/events/sched.h +10 -22
@@ -51,15 +51,12 @@ TRACE_EVENT(sched_kthread_stop_ret,/* * Tracepoint for waiting on task to unschedule: -* -* (NOTE: the 'rq' argument is not used by generic trace events, -* but used by the latency tracer plugin. ) */ TRACE_EVENT(sched_wait_task, - TP_PROTO(struct rq *rq, struct task_struct *p), + TP_PROTO(struct task_struct *p), - TP_ARGS(rq, p), + TP_ARGS(p), TP_STRUCT__entry( __array( char, comm, TASK_COMM_LEN )
@@ -79,15 +76,12 @@ TRACE_EVENT(sched_wait_task,/* * Tracepoint for waking up a task: -* -* (NOTE: the 'rq' argument is not used by generic trace events, -* but used by the latency tracer plugin. ) */ DECLARE_EVENT_CLASS(sched_wakeup_template, - TP_PROTO(struct rq *rq, struct task_struct *p, int success), + TP_PROTO(struct task_struct *p, int success), - TP_ARGS(rq, p, success), + TP_ARGS(p, success), TP_STRUCT__entry( __array( char, comm, TASK_COMM_LEN )
@@ -111,31 +105,25 @@ DECLARE_EVENT_CLASS(sched_wakeup_template, );DEFINE_EVENT (sched_wakeup_template, sched_wakeup, - TP_PROTO(struct rq *rq, struct task_struct *p, int success), -TP_ARGS (rq, p, success)); + TP_PROTO(struct task_struct *p, int success), +TP_ARGS (p, success));/* * Tracepoint for waking up a new task: -* -* (NOTE: the 'rq' argument is not used by generic trace events, -* but used by the latency tracer plugin. ) */ DEFINE_EVENT (sched_wakeup_template, sched_wakeup_new, - TP_PROTO(struct rq *rq, struct task_struct *p, int success), -TP_ARGS (rq, p, success)); + TP_PROTO(struct task_struct *p, int success), +TP_ARGS (p, success));/* * Tracepoint for task switches, performed by the scheduler: -* -* (NOTE: the 'rq' argument is not used by generic trace events, -* but used by the latency tracer plugin. ) */ TRACE_EVENT(sched_switch, - TP_PROTO(struct rq *rq, struct task_struct *prev, + TP_PROTO(struct task_struct *prev, struct task_struct *next), - TP_ARGS(rq, prev, next), + TP_ARGS(prev, next), TP_STRUCT__entry( __array( char, prev_comm, TASK_COMM_LEN )
init/Kconfig +1 -2
@@ -604,8 +604,7 @@ config RT_GROUP_SCHED default n help This feature lets you explicitly allocate real CPU bandwidth - to users or control groups (depending on the "Basis for grouping tasks" - setting below. If enabled, it will also make it impossible to + to task groups. If enabled, it will also make it impossible to schedule realtime tasks for non-root users until you allocate realtime bandwidth for them. See Documentation/scheduler/sched-rt-group.txt for more information.
kernel/Makefile +1 -1
@@ -68,7 +68,7 @@ obj-$(CONFIG_USER_NS) += user_namespace.o obj-$(CONFIG_PID_NS) += pid_namespace.o obj-$(CONFIG_IKCONFIG) += configs.o obj-$(CONFIG_RESOURCE_COUNTERS) += res_counter.o -obj-$(CONFIG_STOP_MACHINE) += stop_machine.o +obj-$(CONFIG_SMP) += stop_machine.o obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o obj-$(CONFIG_AUDIT) += audit.o auditfilter.o audit_watch.o obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
kernel/capability.c +0 -1
@@ -15,7 +15,6 @@#include <linux/syscalls.h> #include <linux/pid_namespace.h> #include <asm/uaccess.h> -#include "cred-internals.h" /* * Leveraged for setting/resetting capabilities
kernel/cgroup.c +1 -1
@@ -3010,7 +3010,7 @@ static int cgroup_event_wake(wait_queue_t *wait, unsigned mode,unsigned long flags = (unsigned long )key;if (flags &POLLHUP ) { -remove_wait_queue_locked (event->wqh, &event->wait); +__remove_wait_queue (event->wqh, &event->wait);spin_lock (&cgrp->event_list_lock);list_del (&event->list);spin_unlock (&cgrp->event_list_lock);
kernel/cpu.c +6 -20
@@ -164,6 +164,7 @@ static inline void check_for_tasks(int cpu) }struct take_cpu_down_param { +struct task_struct *caller;unsigned long mod;void *hcpu; };
@@ -172,6 +173,7 @@ struct take_cpu_down_param {static int __ref take_cpu_down (void *_param) {struct take_cpu_down_param *param = _param; +unsigned int cpu = (unsigned long )param->hcpu;int err;/* Ensure this CPU doesn't handle any more interrupts. */
@@ -182,6 +184,8 @@ static int __ref take_cpu_down(void *_param)raw_notifier_call_chain (&cpu_chain,CPU_DYING | param->mod, param->hcpu); +if (task_cpu (param->caller) == cpu) +move_task_off_dead_cpu (cpu, param->caller);/* Force idle task to run as soon as we yield: it should immediately notice cpu is offline and die quickly. */ sched_idle_next ();
@@ -192,10 +196,10 @@ static int __ref take_cpu_down(void *_param)static int __ref _cpu_down (unsigned int cpu,int tasks_frozen) {int err, nr_calls =0 ; -cpumask_var_t old_allowed;void *hcpu = (void *)(long )cpu;unsigned long mod = tasks_frozen ?CPU_TASKS_FROZEN :0 ;struct take_cpu_down_param tcd_param = { + .caller = current, .mod = mod, .hcpu = hcpu, };
@@ -206,9 +210,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)if (!cpu_online (cpu))return -EINVAL ; -if (!alloc_cpumask_var (&old_allowed,GFP_KERNEL )) -return -ENOMEM ; -cpu_hotplug_begin ();set_cpu_active (cpu, false); err = __raw_notifier_call_chain(&cpu_chain, CPU_DOWN_PREPARE | mod,
@@ -225,10 +226,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) goto out_release; } -/* Ensure that we are not runnable on dying cpu */ -cpumask_copy (old_allowed, ¤t->cpus_allowed); -set_cpus_allowed_ptr (current, cpu_active_mask); - err =__stop_machine (take_cpu_down, &tcd_param,cpumask_of (cpu));if (err) {set_cpu_active (cpu, true);
@@ -237,7 +234,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) hcpu) == NOTIFY_BAD)BUG (); - goto out_allowed; + goto out_release; }BUG_ON (cpu_online (cpu));
@@ -255,8 +252,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)check_for_tasks (cpu); -out_allowed: -set_cpus_allowed_ptr (current, old_allowed); out_release:cpu_hotplug_done ();if (!err) {
@@ -264,7 +259,6 @@ out_release: hcpu) == NOTIFY_BAD)BUG (); } -free_cpumask_var (old_allowed);return err; }
@@ -272,9 +266,6 @@ int __ref cpu_down(unsigned int cpu) {int err; - err =stop_machine_create (); -if (err) -return err;cpu_maps_update_begin ();if (cpu_hotplug_disabled) {
@@ -286,7 +277,6 @@ int __ref cpu_down(unsigned int cpu) out:cpu_maps_update_done (); -stop_machine_destroy ();return err; }EXPORT_SYMBOL (cpu_down);
@@ -367,9 +357,6 @@ int disable_nonboot_cpus(void) {int cpu, first_cpu, error; - error =stop_machine_create (); -if (error) -return error;cpu_maps_update_begin (); first_cpu =cpumask_first (cpu_online_mask);/*
@@ -400,7 +387,6 @@ int disable_nonboot_cpus(void)printk (KERN_ERR "Non-boot CPUs are not disabled\n" ); }cpu_maps_update_done (); -stop_machine_destroy ();return error; }
kernel/cpuset.c +42 -25
83 lines not on this page · raw message
kernel/cred-internals.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* Internal credentials stuff -* -* Copyright (C) 2008 Red Hat, Inc. All Rights Reserved. -* Written by David Howells ([email protected]) -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public Licence -* as published by the Free Software Foundation; either version -* 2 of the Licence, or (at your option) any later version. -*/ - -/* -* user.c -*/ -static inline void sched_switch_user (struct task_struct *p) -{ -#ifdef CONFIG_USER_SCHED -sched_move_task (p); -#endif /* CONFIG_USER_SCHED */ -} -
kernel/cred.c +0 -3
@@ -17,7 +17,6 @@#include <linux/init_task.h> #include <linux/security.h> #include <linux/cn_proc.h> -#include "cred-internals.h" #if 0 #define kdebug (FMT , ...) \
@@ -560,8 +559,6 @@ int commit_creds(struct cred *new)atomic_dec (&old->user->processes);alter_cred_subscribers (old,-2 ); -sched_switch_user (task); -/* send notifications */ if (new->uid != old->uid || new->euid != old->euid ||
kernel/exit.c +0 -1
@@ -55,7 +55,6 @@#include <asm/unistd.h> #include <asm/pgtable.h> #include <asm/mmu_context.h> -#include "cred-internals.h" static void exit_mm (struct task_struct * tsk);
kernel/module.c +2 -12
@@ -723,16 +723,8 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user,return -EFAULT ; name[MODULE_NAME_LEN -1 ] ='\0' ; -/* Create stop_machine threads since free_module relies on -* a non-failing stop_machine call. */ - ret =stop_machine_create (); -if (ret) -return ret; - -if (mutex_lock_interruptible (&module_mutex) !=0 ) { - ret = -EINTR ; - goto out_stop; - } +if (mutex_lock_interruptible (&module_mutex) !=0 ) +return -EINTR ; mod =find_module (name);if (!mod) {
@@ -792,8 +784,6 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user, out:mutex_unlock (&module_mutex); -out_stop: -stop_machine_destroy ();return ret; }
kernel/rcutorture.c +1 -1
@@ -669,7 +669,7 @@ static struct rcu_torture_ops sched_expedited_ops = { .sync = synchronize_sched_expedited, .cb_barrier = NULL, .fqs = rcu_sched_force_quiescent_state, - .stats = rcu_expedited_torture_stats, + .stats = NULL, .irq_capable = 1, .name = "sched_expedited" };
kernel/sched.c +263 -463
1,246 lines not on this page · raw message
kernel/sched_debug.c +38 -70
143 lines not on this page · raw message
kernel/sched_fair.c +148 -202
518 lines not on this page · raw message
kernel/sched_features.h +0 -55
55 lines not on this page · raw message
kernel/stop_machine.c +412 -125
537 lines not on this page · raw message
kernel/time/tick-sched.c +70 -14
84 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.