upload tizen1.0 source
[kernel/linux-2.6.36.git] / include / linux / stopwatch.h
1 #ifndef __LINUX_STOPWATCH_H_INCLUDED
2 #define __LINUX_STOPWATCH_H_INCLUDED
3
4 #include <linux/clocksource.h>
5
6 struct stopwatch_data {
7         const char      *name;
8         int             pwm_timer;
9         unsigned long clk;      /* timer clock */
10         unsigned long res;      /* resolution (== 1/clk)  nanosec */
11         cycle_t t;              /* measured tick */
12 };
13
14 cycle_t get_stopwatch_tick(int timer);
15 ulong get_stopwatch_clk(int timer);
16 void stopwatch_put(const char * fmt, ...);
17 #endif  /* __LINUX_STOPWATCH_H_INCLUDED */