- clockevents-smp-on-up-features.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     clockevents: let SMP kernels on UP systems use the PIT
has been removed from the -mm tree.  Its filename was
     clockevents-smp-on-up-features.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
Subject: clockevents: let SMP kernels on UP systems use the PIT


Allow a SMP kernel to use the PIT for highres/dyntick on an UP machine.

Signed-of-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/i386/kernel/i8253.c  |    5 +----
 kernel/time/clockevents.c |    6 +++---
 2 files changed, 4 insertions(+), 7 deletions(-)

diff -puN arch/i386/kernel/i8253.c~clockevents-smp-on-up-features arch/i386/kernel/i8253.c
--- a/arch/i386/kernel/i8253.c~clockevents-smp-on-up-features
+++ a/arch/i386/kernel/i8253.c
@@ -85,10 +85,7 @@ static void pit_next_event(unsigned long
 struct clock_event_device pit_clockevent = {
 	.name		= "pit",
 	.capabilities	= CLOCK_CAP_TICK | CLOCK_CAP_PROFILE | CLOCK_CAP_UPDATE
-#ifndef CONFIG_SMP
-			| CLOCK_CAP_NEXTEVT
-#endif
-	,
+			| CLOCK_CAP_NEXTEVT,
 	.set_mode	= init_pit_timer,
 	.set_next_event = pit_next_event,
 	.shift		= 32,
diff -puN kernel/time/clockevents.c~clockevents-smp-on-up-features kernel/time/clockevents.c
--- a/kernel/time/clockevents.c~clockevents-smp-on-up-features
+++ a/kernel/time/clockevents.c
@@ -254,14 +254,14 @@ int __init register_global_clockevent(st
 		return -EINVAL;
 	}
 
-#ifdef CONFIG_SMP
 	/*
 	 * On UP systems the global clock event device can be used as the next
 	 * event device. On SMP this is disabled because the next event device
 	 * must be per CPU.
 	 */
-	evt->capabilities &= ~CLOCK_CAP_NEXTEVT;
-#endif
+	if (num_possible_cpus() > 1)
+		evt->capabilities &= ~CLOCK_CAP_NEXTEVT;
+
 
 	/* Mask out high resolution capabilities for now */
 	global_eventdevice.event = evt;
_

Patches currently in -mm which might be from tglx@xxxxxxxxxxxxx are

setup_irq-better-mismatch-debugging.patch
gtod-exponential-update_wall_time.patch
gtod-persistent-clock-support-core.patch
gtod-persistent-clock-support-i386.patch
time-uninline-jiffiesh.patch
time-uninline-jiffiesh-fix.patch
time-fix-msecs_to_jiffies-bug.patch
time-fix-timeout-overflow.patch
cleanup-uninline-irq_enter-and-move-it-into-a-function.patch
dynticks-extend-next_timer_interrupt-to-use-a-reference-jiffie.patch
dynticks-extend-next_timer_interrupt-to-use-a-reference-jiffie-remove-incorrect-warning-in-kernel-timerc.patch
hrtimers-namespace-and-enum-cleanup.patch
hrtimers-clean-up-locking.patch
updated-hrtimers-state-tracking.patch
updated-hrtimers-clean-up-callback-tracking.patch
updated-hrtimers-move-and-add-documentation.patch
updated-add-a-framework-to-manage-clock-event-devices.patch
updated-acpi-include-apich.patch
updated-acpi-keep-track-of-timer-broadcast.patch
updated-acpi-add-state-propagation-for-dynamic-broadcasting.patch
updated-i386-cleanup-apic-code.patch
updated-i386-convert-to-clock-event-devices.patch
updated-pm_timer-allow-early-access-and-move-externs-to-a-header-file.patch
updated-i386-rework-local-apic-calibration.patch
updated-high-res-timers-core.patch
updated-gtod-mark-tsc-unusable-for-highres-timers.patch
updated-dynticks-core-code.patch
updated-dyntick-add-nohz-stats-to-proc-stat.patch
updated-dynticks-i386-arch-code.patch
updated-dynticks-fix-nmi-watchdog.patch
updated-high-res-timers-dynticks-enable-i386-support.patch
updated-debugging-feature-timer-stats.patch
clockevents-core-check-for-clock-event-device-handler-being-non-null-before-calling-it.patch
round_jiffies-infrastructure.patch
round_jiffies-infrastructure-fix.patch
clocksource-add-usage-of-config_sysfs.patch
clocksource-small-cleanup-2.patch
clocksource-small-cleanup-2-fix.patch
clocksource-small-acpi_pm-cleanup.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux