time.h (f2e5d078f7f02d4289db31f5f63e23e39914075e) | time.h (778eeb1b199b85bec79b49ac483b013e270636ea) |
---|---|
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 * --- 61 unchanged lines hidden (view full) --- 70 * Initialize the count register as a clocksource 71 */ 72#ifdef CONFIG_CSRC_R4K 73extern int init_r4k_clocksource(void); 74#endif 75 76static inline int init_mips_clocksource(void) 77{ | 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 * --- 61 unchanged lines hidden (view full) --- 70 * Initialize the count register as a clocksource 71 */ 72#ifdef CONFIG_CSRC_R4K 73extern int init_r4k_clocksource(void); 74#endif 75 76static inline int init_mips_clocksource(void) 77{ |
78#ifdef CONFIG_CSRC_R4K | 78#if defined(CONFIG_CSRC_R4K) && !defined(CONFIG_CSRC_GIC) |
79 return init_r4k_clocksource(); 80#else 81 return 0; 82#endif 83} 84 85static inline void clockevent_set_clock(struct clock_event_device *cd, 86 unsigned int clock) 87{ 88 clockevents_calc_mult_shift(cd, clock, 4); 89} 90 91#endif /* _ASM_TIME_H */ | 79 return init_r4k_clocksource(); 80#else 81 return 0; 82#endif 83} 84 85static inline void clockevent_set_clock(struct clock_event_device *cd, 86 unsigned int clock) 87{ 88 clockevents_calc_mult_shift(cd, clock, 4); 89} 90 91#endif /* _ASM_TIME_H */ |