 a7bf616208
			
		
	
	
	a7bf616208
	
	
	
		
			
			Add a sched_clock support for the sp804 timer. The clocksource timer can optionally initialize itself as sched_clock timer. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			478 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			478 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| void __sp804_clocksource_and_sched_clock_init(void __iomem *,
 | |
| 					      const char *, int);
 | |
| 
 | |
| static inline void sp804_clocksource_init(void __iomem *base, const char *name)
 | |
| {
 | |
| 	__sp804_clocksource_and_sched_clock_init(base, name, 0);
 | |
| }
 | |
| 
 | |
| static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
 | |
| 							  const char *name)
 | |
| {
 | |
| 	__sp804_clocksource_and_sched_clock_init(base, name, 1);
 | |
| }
 | |
| 
 | |
| void sp804_clockevents_init(void __iomem *, unsigned int, const char *);
 |