This patch adds notrace annotations to timer functions that will be used by tracing. This helps speed things up and also keeps the ugliness of printing these functions down. Signed-off-by: Steven Rostedt --- arch/x86/kernel/apic_32.c | 2 +- arch/x86/kernel/hpet.c | 2 +- arch/x86/kernel/time_32.c | 2 +- arch/x86/kernel/tsc_32.c | 2 +- arch/x86/kernel/tsc_64.c | 4 ++-- arch/x86/lib/delay_32.c | 6 +++--- drivers/clocksource/acpi_pm.c | 8 ++++---- 7 files changed, 13 insertions(+), 13 deletions(-) Index: linux-compile.git/arch/x86/kernel/apic_32.c =================================================================== --- linux-compile.git.orig/arch/x86/kernel/apic_32.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/arch/x86/kernel/apic_32.c 2008-01-14 13:14:14.000000000 -0500 @@ -577,7 +577,7 @@ static void local_apic_timer_interrupt(v * interrupt as well. Thus we cannot inline the local irq ... ] */ -void fastcall smp_apic_timer_interrupt(struct pt_regs *regs) +notrace fastcall void smp_apic_timer_interrupt(struct pt_regs *regs) { struct pt_regs *old_regs = set_irq_regs(regs); Index: linux-compile.git/arch/x86/kernel/hpet.c =================================================================== --- linux-compile.git.orig/arch/x86/kernel/hpet.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/arch/x86/kernel/hpet.c 2008-01-14 13:14:14.000000000 -0500 @@ -295,7 +295,7 @@ static int hpet_legacy_next_event(unsign /* * Clock source related code */ -static cycle_t read_hpet(void) +static notrace cycle_t read_hpet(void) { return (cycle_t)hpet_readl(HPET_COUNTER); } Index: linux-compile.git/arch/x86/kernel/time_32.c =================================================================== --- linux-compile.git.orig/arch/x86/kernel/time_32.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/arch/x86/kernel/time_32.c 2008-01-14 13:14:14.000000000 -0500 @@ -122,7 +122,7 @@ static int set_rtc_mmss(unsigned long no int timer_ack; -unsigned long profile_pc(struct pt_regs *regs) +notrace unsigned long profile_pc(struct pt_regs *regs) { unsigned long pc = instruction_pointer(regs); Index: linux-compile.git/arch/x86/kernel/tsc_32.c =================================================================== --- linux-compile.git.orig/arch/x86/kernel/tsc_32.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/arch/x86/kernel/tsc_32.c 2008-01-14 13:14:14.000000000 -0500 @@ -269,7 +269,7 @@ core_initcall(cpufreq_tsc); static unsigned long current_tsc_khz = 0; -static cycle_t read_tsc(void) +static notrace cycle_t read_tsc(void) { cycle_t ret; Index: linux-compile.git/arch/x86/kernel/tsc_64.c =================================================================== --- linux-compile.git.orig/arch/x86/kernel/tsc_64.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/arch/x86/kernel/tsc_64.c 2008-01-14 13:14:14.000000000 -0500 @@ -248,13 +248,13 @@ __setup("notsc", notsc_setup); /* clock source code: */ -static cycle_t read_tsc(void) +static notrace cycle_t read_tsc(void) { cycle_t ret = (cycle_t)get_cycles_sync(); return ret; } -static cycle_t __vsyscall_fn vread_tsc(void) +static notrace cycle_t __vsyscall_fn vread_tsc(void) { cycle_t ret = (cycle_t)get_cycles_sync(); return ret; Index: linux-compile.git/arch/x86/lib/delay_32.c =================================================================== --- linux-compile.git.orig/arch/x86/lib/delay_32.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/arch/x86/lib/delay_32.c 2008-01-14 13:14:14.000000000 -0500 @@ -24,7 +24,7 @@ #endif /* simple loop based delay: */ -static void delay_loop(unsigned long loops) +static notrace void delay_loop(unsigned long loops) { int d0; @@ -39,7 +39,7 @@ static void delay_loop(unsigned long loo } /* TSC based delay: */ -static void delay_tsc(unsigned long loops) +static notrace void delay_tsc(unsigned long loops) { unsigned long bclock, now; @@ -72,7 +72,7 @@ int read_current_timer(unsigned long *ti return -1; } -void __delay(unsigned long loops) +notrace void __delay(unsigned long loops) { delay_fn(loops); } Index: linux-compile.git/drivers/clocksource/acpi_pm.c =================================================================== --- linux-compile.git.orig/drivers/clocksource/acpi_pm.c 2008-01-14 13:13:34.000000000 -0500 +++ linux-compile.git/drivers/clocksource/acpi_pm.c 2008-01-14 13:14:14.000000000 -0500 @@ -30,13 +30,13 @@ */ u32 pmtmr_ioport __read_mostly; -static inline u32 read_pmtmr(void) +static inline notrace u32 read_pmtmr(void) { /* mask the output to 24 bits */ return inl(pmtmr_ioport) & ACPI_PM_MASK; } -u32 acpi_pm_read_verified(void) +notrace u32 acpi_pm_read_verified(void) { u32 v1 = 0, v2 = 0, v3 = 0; @@ -56,12 +56,12 @@ u32 acpi_pm_read_verified(void) return v2; } -static cycle_t acpi_pm_read_slow(void) +static notrace cycle_t acpi_pm_read_slow(void) { return (cycle_t)acpi_pm_read_verified(); } -static cycle_t acpi_pm_read(void) +static notrace cycle_t acpi_pm_read(void) { return (cycle_t)read_pmtmr(); } -- -- 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/