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

« back to all changes in this revision

Viewing changes to arch/powerpc/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) 2005,2008 Mathieu Desnoyers
3
 
 *
4
 
 * Trace clock PowerPC definitions.
5
 
 *
6
 
 * Use get_tb() directly to insure reading a 64-bits value on powerpc 32.
7
 
 */
8
 
 
9
 
#ifndef _ASM_TRACE_CLOCK_H
10
 
#define _ASM_TRACE_CLOCK_H
11
 
 
12
 
#include <linux/timex.h>
13
 
#include <linux/time.h>
14
 
#include <asm/time.h>
15
 
 
16
 
static inline u32 trace_clock_read32(void)
17
 
{
18
 
        return get_tbl();
19
 
}
20
 
 
21
 
static inline u64 trace_clock_read64(void)
22
 
{
23
 
        return get_tb();
24
 
}
25
 
 
26
 
static inline unsigned int trace_clock_frequency(void)
27
 
{
28
 
        return get_cycles_rate();
29
 
}
30
 
 
31
 
static inline u32 trace_clock_freq_scale(void)
32
 
{
33
 
        return 1;
34
 
}
35
 
 
36
 
static inline int get_trace_clock(void)
37
 
{
38
 
        return 0;
39
 
}
40
 
 
41
 
static inline void put_trace_clock(void)
42
 
{
43
 
}
44
 
 
45
 
static inline void set_trace_clock_is_sync(int state)
46
 
{
47
 
}
48
 
#endif /* _ASM_TRACE_CLOCK_H */