time.h (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) time.h (d7ea335c05ba7c013615d1e0d5a71459eb4195e8)
1/*
2 * Copyright (C) 2001, 2002, MontaVista Software Inc.
3 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
4 * Copyright (c) 2003 Maciej W. Rozycki
5 *
6 * include/asm-mips/time.h
7 * header file for the new style time.c file and time services.
8 *

--- 57 unchanged lines hidden (view full) ---

66#else
67 return -ENXIO;
68#endif
69}
70
71/*
72 * Initialize the count register as a clocksource
73 */
1/*
2 * Copyright (C) 2001, 2002, MontaVista Software Inc.
3 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
4 * Copyright (c) 2003 Maciej W. Rozycki
5 *
6 * include/asm-mips/time.h
7 * header file for the new style time.c file and time services.
8 *

--- 57 unchanged lines hidden (view full) ---

66#else
67 return -ENXIO;
68#endif
69}
70
71/*
72 * Initialize the count register as a clocksource
73 */
74#ifdef CONFIG_CSRC_R4K_LIB
74#ifdef CONFIG_CSRC_R4K
75extern int init_r4k_clocksource(void);
76#endif
77
78static inline int init_mips_clocksource(void)
79{
80#ifdef CONFIG_CSRC_R4K
81 return init_r4k_clocksource();
82#else
83 return 0;
84#endif
85}
86
87static inline void clockevent_set_clock(struct clock_event_device *cd,
88 unsigned int clock)
89{
90 clockevents_calc_mult_shift(cd, clock, 4);
91}
92
93#endif /* _ASM_TIME_H */
75extern int init_r4k_clocksource(void);
76#endif
77
78static inline int init_mips_clocksource(void)
79{
80#ifdef CONFIG_CSRC_R4K
81 return init_r4k_clocksource();
82#else
83 return 0;
84#endif
85}
86
87static inline void clockevent_set_clock(struct clock_event_device *cd,
88 unsigned int clock)
89{
90 clockevents_calc_mult_shift(cd, clock, 4);
91}
92
93#endif /* _ASM_TIME_H */