* [PATCH] clocksource: add usage of CONFIG_SYSFS
@ 2006-11-06 17:02 Daniel Walker
0 siblings, 0 replies; only message in thread
From: Daniel Walker @ 2006-11-06 17:02 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, John Stultz
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>
---
kernel/time/clocksource.c | 2 ++
1 files changed, 2 insertions(+)
Index: linux-2.6.18/kernel/time/clocksource.c
===================================================================
--- linux-2.6.18.orig/kernel/time/clocksource.c
+++ linux-2.6.18/kernel/time/clocksource.c
@@ -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
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-06 17:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-06 17:02 [PATCH] clocksource: add usage of CONFIG_SYSFS Daniel Walker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®