aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/clocksource.c
diff options
context:
space:
mode:
authorjohn stultz <johnstul@us.ibm.com>2006-06-26 03:25:14 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:21 -0400
commita275254975a29c51929ee175b92ac471ac2a0043 (patch)
tree42ec41bf74c0c601f05ed12ff674539f4bf6f505 /kernel/time/clocksource.c
parent5d0cf410e94b1f1ff852c3f210d22cc6c5a27ffa (diff)
[PATCH] time: rename clocksource functions
As suggested by Roman Zippel, change clocksource functions to use clocksource_xyz rather then xyz_clocksource to avoid polluting the namespace. Signed-off-by: John Stultz <johnstul@us.ibm.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/time/clocksource.c')
-rw-r--r--kernel/time/clocksource.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index a9f387ea83b0..74eca5939bd9 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -65,10 +65,10 @@ static int __init clocksource_done_booting(void)
65late_initcall(clocksource_done_booting); 65late_initcall(clocksource_done_booting);
66 66
67/** 67/**
68 * get_next_clocksource - Returns the selected clocksource 68 * clocksource_get_next - Returns the selected clocksource
69 * 69 *
70 */ 70 */
71struct clocksource *get_next_clocksource(void) 71struct clocksource *clocksource_get_next(void)
72{ 72{
73 unsigned long flags; 73 unsigned long flags;
74 74
@@ -142,12 +142,12 @@ static int is_registered_source(struct clocksource *c)
142} 142}
143 143
144/** 144/**
145 * register_clocksource - Used to install new clocksources 145 * clocksource_register - Used to install new clocksources
146 * @t: clocksource to be registered 146 * @t: clocksource to be registered
147 * 147 *
148 * Returns -EBUSY if registration fails, zero otherwise. 148 * Returns -EBUSY if registration fails, zero otherwise.
149 */ 149 */
150int register_clocksource(struct clocksource *c) 150int clocksource_register(struct clocksource *c)
151{ 151{
152 int ret = 0; 152 int ret = 0;
153 unsigned long flags; 153 unsigned long flags;
@@ -167,17 +167,16 @@ int register_clocksource(struct clocksource *c)
167 spin_unlock_irqrestore(&clocksource_lock, flags); 167 spin_unlock_irqrestore(&clocksource_lock, flags);
168 return ret; 168 return ret;
169} 169}
170 170EXPORT_SYMBOL(clocksource_register);
171EXPORT_SYMBOL(register_clocksource);
172 171
173/** 172/**
174 * reselect_clocksource - Rescan list for next clocksource 173 * clocksource_reselect - Rescan list for next clocksource
175 * 174 *
176 * A quick helper function to be used if a clocksource changes its 175 * A quick helper function to be used if a clocksource changes its
177 * rating. Forces the clocksource list to be re-scanned for the best 176 * rating. Forces the clocksource list to be re-scanned for the best
178 * clocksource. 177 * clocksource.
179 */ 178 */
180void reselect_clocksource(void) 179void clocksource_reselect(void)
181{ 180{
182 unsigned long flags; 181 unsigned long flags;
183 182
@@ -185,6 +184,7 @@ void reselect_clocksource(void)
185 next_clocksource = select_clocksource(); 184 next_clocksource = select_clocksource();
186 spin_unlock_irqrestore(&clocksource_lock, flags); 185 spin_unlock_irqrestore(&clocksource_lock, flags);
187} 186}
187EXPORT_SYMBOL(clocksource_reselect);
188 188
189/** 189/**
190 * sysfs_show_current_clocksources - sysfs interface for current clocksource 190 * sysfs_show_current_clocksources - sysfs interface for current clocksource