summaryrefslogtreecommitdiffstats
path: root/arch/tile/include/asm/timex.h
diff options
context:
space:
mode:
authorDavid Howells2012-03-28 19:30:03 +0200
committerDavid Howells2012-03-28 19:30:03 +0200
commitbd119c69239322caafdb64517a806037d0d0c70a (patch)
treeb0f03cfa94bd35597302f42644b9220eb71baf5a /arch/tile/include/asm/timex.h
parentDisintegrate asm/system.h for Sparc (diff)
downloadkernel-qcow2-linux-bd119c69239322caafdb64517a806037d0d0c70a.tar.gz
kernel-qcow2-linux-bd119c69239322caafdb64517a806037d0d0c70a.tar.xz
kernel-qcow2-linux-bd119c69239322caafdb64517a806037d0d0c70a.zip
Disintegrate asm/system.h for Tile
Disintegrate asm/system.h for Tile. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include/asm/timex.h')
-rw-r--r--arch/tile/include/asm/timex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/tile/include/asm/timex.h b/arch/tile/include/asm/timex.h
index 29921f0b86da..dc987d53e2a9 100644
--- a/arch/tile/include/asm/timex.h
+++ b/arch/tile/include/asm/timex.h
@@ -29,11 +29,13 @@ typedef unsigned long long cycles_t;
#if CHIP_HAS_SPLIT_CYCLE()
cycles_t get_cycles(void);
+#define get_cycles_low() __insn_mfspr(SPR_CYCLE_LOW)
#else
static inline cycles_t get_cycles(void)
{
return __insn_mfspr(SPR_CYCLE);
}
+#define get_cycles_low() __insn_mfspr(SPR_CYCLE) /* just get all 64 bits */
#endif
cycles_t get_clock_rate(void);