[PATCH] sh: Simplistic clock framework
This adds a relatively simplistic clock framework for sh. The initial goal behind this is to clean up the arch/sh/kernel/time.c mess and to get the CPU subtype-specific frequency setting and calculation code moved somewhere more sensible. This only deals with the core clocks at the moment, though it's trivial for other drivers to define their own clocks as desired. Signed-off-by: Paul Mundt <lethal@linux-sh.org> Cc: john stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
b66c1a3919
commit
36ddf31b68
@@ -14,16 +14,5 @@
|
||||
|
||||
#include <asm/cpu/freq.h>
|
||||
|
||||
/* arch/sh/kernel/time.c */
|
||||
extern void get_current_frequency_divisors(unsigned int *ifc, unsigned int *pfc, unsigned int *bfc);
|
||||
|
||||
extern unsigned int get_ifc_divisor(unsigned int value);
|
||||
extern unsigned int get_ifc_divisor(unsigned int value);
|
||||
extern unsigned int get_ifc_divisor(unsigned int value);
|
||||
|
||||
extern unsigned int get_ifc_value(unsigned int divisor);
|
||||
extern unsigned int get_pfc_value(unsigned int divisor);
|
||||
extern unsigned int get_bfc_value(unsigned int divisor);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* __ASM_SH_FREQ_H */
|
||||
|
Reference in New Issue
Block a user