diff options
author | Daniel Walker <dwalker@mvista.com> | 2006-12-10 05:21:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:57:22 -0500 |
commit | 2b0137001de68153203dd3bc20e6d27eb7c9719c (patch) | |
tree | 9cb5870d892f750e1baa7255067fd6085a9dd09b /kernel/time | |
parent | 2b2842146cb4105877c2be51d3857ec61ebd4ff9 (diff) |
[PATCH] clocksource: add usage of CONFIG_SYSFS
Simply adds some ifdefs to remove clocksoure sysfs code when CONFIG_SYSFS
isn't turn on.
Signed-off-by: Daniel Walker <dwalker@mvista.com>
Acked-by: John Stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/clocksource.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 74eca5939bd9..3651b34cc355 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c | |||
@@ -186,6 +186,7 @@ void clocksource_reselect(void) | |||
186 | } | 186 | } |
187 | EXPORT_SYMBOL(clocksource_reselect); | 187 | EXPORT_SYMBOL(clocksource_reselect); |
188 | 188 | ||
189 | #ifdef CONFIG_SYSFS | ||
189 | /** | 190 | /** |
190 | * sysfs_show_current_clocksources - sysfs interface for current clocksource | 191 | * sysfs_show_current_clocksources - sysfs interface for current clocksource |
191 | * @dev: unused | 192 | * @dev: unused |
@@ -307,6 +308,7 @@ static int __init init_clocksource_sysfs(void) | |||
307 | } | 308 | } |
308 | 309 | ||
309 | device_initcall(init_clocksource_sysfs); | 310 | device_initcall(init_clocksource_sysfs); |
311 | #endif /* CONFIG_SYSFS */ | ||
310 | 312 | ||
311 | /** | 313 | /** |
312 | * boot_override_clocksource - boot clock override | 314 | * boot_override_clocksource - boot clock override |