OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b648072
)
Blackfin: time: replace magic numbers with defines
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 30 May 2011 03:11:42 +0000
(23:11 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 23 Jul 2011 05:10:42 +0000
(
01:10
-0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/time.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/kernel/time.c
b/arch/blackfin/kernel/time.c
index
8d73724
..
ceb2bf6
100644
(file)
--- a/
arch/blackfin/kernel/time.c
+++ b/
arch/blackfin/kernel/time.c
@@
-51,7
+51,7
@@
void __init setup_core_timer(void)
u32 tcount;
/* power up the timer, but don't enable it just yet */
- bfin_write_TCNTL(
1
);
+ bfin_write_TCNTL(
TMPWR
);
CSYNC();
/* the TSCALE prescaler counter */
@@
-64,7
+64,7
@@
void __init setup_core_timer(void)
/* now enable the timer */
CSYNC();
- bfin_write_TCNTL(
7
);
+ bfin_write_TCNTL(
TAUTORLD | TMREN | TMPWR
);
}
#endif