~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/sparc/include/asm/trace-clock.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2008, Mathieu Desnoyers
3
 
 *
4
 
 * Trace clock definitions for Sparc64.
5
 
 */
6
 
 
7
 
#ifndef _ASM_SPARC_TRACE_CLOCK_H
8
 
#define _ASM_SPARC_TRACE_CLOCK_H
9
 
 
10
 
#include <linux/timex.h>
11
 
 
12
 
static inline u32 trace_clock_read32(void)
13
 
{
14
 
        return get_cycles();
15
 
}
16
 
 
17
 
static inline u64 trace_clock_read64(void)
18
 
{
19
 
        return get_cycles();
20
 
}
21
 
 
22
 
static inline unsigned int trace_clock_frequency(void)
23
 
{
24
 
        return get_cycles_rate();
25
 
}
26
 
 
27
 
static inline u32 trace_clock_freq_scale(void)
28
 
{
29
 
        return 1;
30
 
}
31
 
 
32
 
static inline int get_trace_clock(void)
33
 
{
34
 
        return 0;
35
 
}
36
 
 
37
 
static inline void put_trace_clock(void)
38
 
{
39
 
}
40
 
 
41
 
static inline void set_trace_clock_is_sync(int state)
42
 
{
43
 
}
44
 
#endif /* _ASM_SPARC_TRACE_CLOCK_H */