diff mbox

[12/12] ARM: Remove mach-*/include/mach/timex.h

Message ID ADE657CA350FB648AAC2C43247A983F001F3882B8C37@AUSP01VMBX24.collaborationhost.net (mailing list archive)
State New, archived
Headers show

Commit Message

Hartley Sweeten Aug. 4, 2011, 6:14 p.m. UTC
On Thursday, August 04, 2011 10:53 AM, H Hartley Sweeten wrote:
> On Thursday, August 04, 2011 6:55 AM, Deepak Saxena wrote:
>> 
>> We no longer use the global LATCH definition to drive
>> any platform-specific timers so we can remove the
>> timex.h files from all sub-arch include directories.
>> 
>> We still need to keep an ARM CLOCK_TICK_RATE due to
>> jiffies.h depending on it to build but that will be
>> removed in the future once all non-ARM references to
>> LATCH are also removed.
>> 
>> Signed-off-by: Deepak Saxena <dsaxena@linaro.org>
>> ---
>
> [snip]
>
>> diff --git a/arch/arm/include/asm/timex.h b/arch/arm/include/asm/timex.h
>> index 3be8de3..c4f4dac 100644
>> --- a/arch/arm/include/asm/timex.h
>> +++ b/arch/arm/include/asm/timex.h
>> @@ -12,7 +12,10 @@
>>  #ifndef _ASMARM_TIMEX_H
>>  #define _ASMARM_TIMEX_H
>>  
>> -#include <mach/timex.h>
>> +/* 
>> + * Bogus value used to allow kernel to build
>> + */
>> +#define	CLOCK_TICK_RATE	1000000
>>  
>>  typedef unsigned long cycles_t;
>>  
>
> [snip]
>
>> diff --git a/arch/arm/mach-ep93xx/include/mach/timex.h b/arch/arm/mach-ep93xx/include/mach/timex.h
>> deleted file mode 100644
>> index 6b3503b..0000000
>> --- a/arch/arm/mach-ep93xx/include/mach/timex.h
>> +++ /dev/null
>> @@ -1,5 +0,0 @@
>> -/*
>> - * arch/arm/mach-ep93xx/include/mach/timex.h
>> - */
>> -
>> -#define CLOCK_TICK_RATE		983040
>
> Confused...
>
> mach-ep93xx/core.c uses the CLOCK_TICK_RATE to determine TIMER4_TICKS_PER_JIFFY.
> Timer 4 runs at 983.04 kHz, this patch changes this rate to 1 MHz.  Won't that
> effect the sys_timer?

BTW, it looks like Lennert's patch correctly handled this.

http://lists.infradead.org/pipermail/linux-arm-kernel/2010-October/029452.html

Here's the relevant piece.

Regards,
Hartley
diff mbox

Patch

diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index 4cb55d3..3d6d015 100644
--- a/arch/arm/mach-ep93xx/core.c
+++ b/arch/arm/mach-ep93xx/core.c
@@ -111,7 +111,8 @@  void __init ep93xx_map_io(void)
 #define EP93XX_TIMER4_CLOCK		983040
 
 #define TIMER1_RELOAD			((EP93XX_TIMER123_CLOCK / HZ) - 1)
-#define TIMER4_TICKS_PER_JIFFY		DIV_ROUND_CLOSEST(CLOCK_TICK_RATE, HZ)
+#define TIMER4_TICKS_PER_JIFFY		\
+		DIV_ROUND_CLOSEST(EP93XX_TIMER4_CLOCK, HZ)
 
 static unsigned int last_jiffy_time;