projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[POWERPC] Fix timekeeping on PowerPC 601
[deliverable/linux.git]
/
include
/
asm-powerpc
/
time.h
diff --git
a/include/asm-powerpc/time.h
b/include/asm-powerpc/time.h
index d7f5ddfbaac77f5f69c32643a6ef1691bb6e7820..c104c15c6625b5d35a06ae22f0a4a96cc20a2131 100644
(file)
--- a/
include/asm-powerpc/time.h
+++ b/
include/asm-powerpc/time.h
@@
-149,6
+149,11
@@
static inline u64 get_tb(void)
}
#endif /* !CONFIG_PPC64 */
}
#endif /* !CONFIG_PPC64 */
+static inline u64 get_tb_or_rtc(void)
+{
+ return __USE_RTC() ? get_rtc() : get_tb();
+}
+
static inline void set_tb(unsigned int upper, unsigned int lower)
{
mtspr(SPRN_TBWL, 0);
static inline void set_tb(unsigned int upper, unsigned int lower)
{
mtspr(SPRN_TBWL, 0);
This page took
0.024079 seconds
and
5
git commands to generate.