clocksource: add usage of CONFIG_SYSFS
PATCH 1/1 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 <[email protected]>
Acked-by John Stultz <[email protected]>
--- kernel/time/clocksource.c | 2 ++ 1 files changed, 2 insertions(+)
kernel/time/clocksource.c +2 -0
@@ -186,6 +186,7 @@ void clocksource_reselect(void) }EXPORT_SYMBOL (clocksource_reselect); +#ifdef CONFIG_SYSFS /** * sysfs_show_current_clocksources - sysfs interface for current clocksource * @dev: unused
@@ -307,6 +308,7 @@ static int __init init_clocksource_sysfs }device_initcall (init_clocksource_sysfs); +#endif /* CONFIG_SYSFS */ /** * boot_override_clocksource - boot clock override
--