diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 12:39:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 12:39:22 -0400 |
commit | c4efd6b569b2646e1346a08a4c40286f8bcb5f11 (patch) | |
tree | bf33e8594ac4e628cc95f2ef25513788b8273601 /kernel/timer.c | |
parent | 4aed2fd8e3181fea7c09ba79cf64e7e3f4413bf9 (diff) | |
parent | 0bcfe75807944106a3aa655a54bb610d62f3a7f5 (diff) |
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (27 commits)
sched: Use correct macro to display sched_child_runs_first in /proc/sched_debug
sched: No need for bootmem special cases
sched: Revert nohz_ratelimit() for now
sched: Reduce update_group_power() calls
sched: Update rq->clock for nohz balanced cpus
sched: Fix spelling of sibling
sched, cpuset: Drop __cpuexit from cpu hotplug callbacks
sched: Fix the racy usage of thread_group_cputimer() in fastpath_timer_check()
sched: run_posix_cpu_timers: Don't check ->exit_state, use lock_task_sighand()
sched: thread_group_cputime: Simplify, document the "alive" check
sched: Remove the obsolete exit_state/signal hacks
sched: task_tick_rt: Remove the obsolete ->signal != NULL check
sched: __sched_setscheduler: Read the RLIMIT_RTPRIO value lockless
sched: Fix comments to make them DocBook happy
sched: Fix fix_small_capacity
powerpc: Exclude arch_sd_sibiling_asym_packing() on UP
powerpc: Enable asymmetric SMT scheduling on POWER7
sched: Add asymmetric group packing option for sibling domain
sched: Fix capacity calculations for SMT4
sched: Change nohz idle load balancing logic to push model
...
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 6aa6f7e69ad5..d61d16da0b64 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -692,12 +692,8 @@ __mod_timer(struct timer_list *timer, unsigned long expires, | |||
692 | cpu = smp_processor_id(); | 692 | cpu = smp_processor_id(); |
693 | 693 | ||
694 | #if defined(CONFIG_NO_HZ) && defined(CONFIG_SMP) | 694 | #if defined(CONFIG_NO_HZ) && defined(CONFIG_SMP) |
695 | if (!pinned && get_sysctl_timer_migration() && idle_cpu(cpu)) { | 695 | if (!pinned && get_sysctl_timer_migration() && idle_cpu(cpu)) |
696 | int preferred_cpu = get_nohz_load_balancer(); | 696 | cpu = get_nohz_timer_target(); |
697 | |||
698 | if (preferred_cpu >= 0) | ||
699 | cpu = preferred_cpu; | ||
700 | } | ||
701 | #endif | 697 | #endif |
702 | new_base = per_cpu(tvec_bases, cpu); | 698 | new_base = per_cpu(tvec_bases, cpu); |
703 | 699 | ||