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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user