summaryrefslogtreecommitdiff
path: root/include/asm-mips/timex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/timex.h')
-rw-r--r--include/asm-mips/timex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-mips/timex.h b/include/asm-mips/timex.h
index 98aa737b34a..b80de8e0fbb 100644
--- a/include/asm-mips/timex.h
+++ b/include/asm-mips/timex.h
@@ -8,6 +8,8 @@
#ifndef _ASM_TIMEX_H
#define _ASM_TIMEX_H
+#ifdef __KERNEL__
+
#include <asm/mipsregs.h>
/*
@@ -51,4 +53,6 @@ static inline cycles_t get_cycles (void)
return read_c0_count();
}
+#endif /* __KERNEL__ */
+
#endif /* _ASM_TIMEX_H */