Skip to content

Commit

Permalink
[PATCH] clocksource: add usage of CONFIG_SYSFS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Walker authored and Linus Torvalds committed Dec 10, 2006
1 parent 2b28421 commit 2b01370
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/time/clocksource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -307,6 +308,7 @@ static int __init init_clocksource_sysfs(void)
}

device_initcall(init_clocksource_sysfs);
#endif /* CONFIG_SYSFS */

/**
* boot_override_clocksource - boot clock override
Expand Down

0 comments on commit 2b01370

Please sign in to comment.