Skip to content
Snippets Groups Projects
Commit 85cb052e authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD Committed by Nobuhiro Iwamatsu
Browse files

sh: update sh2/sh2a timer coding style

parent 1e15ff99
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h> #include <asm/processor.h>
#define CMT_CMCSR_INIT 0x0001 /* PCLK/32 */ #define CMT_CMCSR_INIT 0x0001 /* PCLK/32 */
#define CMT_CMCSR_CALIB 0x0000 #define CMT_CMCSR_CALIB 0x0000
#define CMT_MAX_COUNTER (0xFFFFFFFF) #define CMT_MAX_COUNTER (0xFFFFFFFF)
#define CMT_TIMER_RESET (0xFFFF) #define CMT_TIMER_RESET (0xFFFF)
...@@ -87,7 +87,7 @@ static unsigned long get_usec (void) ...@@ -87,7 +87,7 @@ static unsigned long get_usec (void)
/* return msec */ /* return msec */
ulong get_timer(ulong base) ulong get_timer(ulong base)
{ {
return (get_usec()/1000) - base; return (get_usec() / 1000) - base;
} }
void set_timer(ulong t) void set_timer(ulong t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment