Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422841AbWJFS5a (ORCPT ); Fri, 6 Oct 2006 14:57:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422848AbWJFS5a (ORCPT ); Fri, 6 Oct 2006 14:57:30 -0400 Received: from gateway-1237.mvista.com ([63.81.120.158]:291 "EHLO dwalker1.mvista.com") by vger.kernel.org with ESMTP id S1422841AbWJFS53 (ORCPT ); Fri, 6 Oct 2006 14:57:29 -0400 Message-Id: <20061006185456.378221000@mvista.com> References: <20061006185439.667702000@mvista.com> User-Agent: quilt/0.45-1 Date: Fri, 06 Oct 2006 11:54:41 -0700 From: Daniel Walker To: akpm@osdl.org CC: linux-kernel@vger.kernel.org, johnstul@us.ibm.com Subject: [PATCH 02/10] -mm: clocksource: small cleanup Content-Disposition: inline; filename=clocksource_cleanup.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3118 Lines: 90 Mostly changing alignment. Just some general cleanup. Signed-Off-By: Daniel Walker Acked-by: John Stultz --- include/linux/clocksource.h | 2 +- kernel/time/clocksource.c | 6 +++--- kernel/timer.c | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) Index: linux-2.6.18/include/linux/clocksource.h =================================================================== --- linux-2.6.18.orig/include/linux/clocksource.h +++ linux-2.6.18/include/linux/clocksource.h @@ -159,7 +159,7 @@ static inline s64 cyc2ns(struct clocksou * Unless you're the timekeeping code, you should not be using this! */ static inline void clocksource_calculate_interval(struct clocksource *c, - unsigned long length_nsec) + unsigned long length_nsec) { u64 tmp; Index: linux-2.6.18/kernel/time/clocksource.c =================================================================== --- linux-2.6.18.orig/kernel/time/clocksource.c +++ linux-2.6.18/kernel/time/clocksource.c @@ -143,7 +143,7 @@ int clocksource_register(struct clocksou /* check if clocksource is already registered */ if (is_registered_source(c)) { printk("register_clocksource: Cannot register %s. " - "Already registered!", c->name); + "Already registered!", c->name); ret = -EBUSY; } else { /* register it */ @@ -262,10 +262,10 @@ sysfs_show_available_clocksources(struct * Sysfs setup bits: */ static SYSDEV_ATTR(current_clocksource, 0600, sysfs_show_current_clocksources, - sysfs_override_clocksource); + sysfs_override_clocksource); static SYSDEV_ATTR(available_clocksource, 0600, - sysfs_show_available_clocksources, NULL); + sysfs_show_available_clocksources, NULL); static struct sysdev_class clocksource_sysclass = { set_kset_name("clocksource"), Index: linux-2.6.18/kernel/timer.c =================================================================== --- linux-2.6.18.orig/kernel/timer.c +++ linux-2.6.18/kernel/timer.c @@ -714,7 +714,7 @@ static int change_clocksource(void) clock = new; clock->cycle_last = now; printk(KERN_INFO "Time: %s clocksource has been installed.\n", - clock->name); + clock->name); return 1; } else if (clock->update_callback) { return clock->update_callback(); @@ -722,7 +722,7 @@ static int change_clocksource(void) return 0; } #else -#define change_clocksource() (0) +#define change_clocksource() do { 0; } while(0) #endif /** @@ -940,7 +940,8 @@ static void update_wall_time(void) /* accumulate error between NTP and clock interval */ clock->error += current_tick_length(); - clock->error -= clock->xtime_interval << (TICK_LENGTH_SHIFT - clock->shift); + clock->error -= clock->xtime_interval << + (TICK_LENGTH_SHIFT - clock->shift); } /* correct the clock when NTP error is too big */ -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/