diff options
author | john stultz <johnstul@us.ibm.com> | 2009-09-16 00:17:19 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-10-07 04:36:20 -0400 |
commit | 10f03f1a249df01ec760e3494298510efad3271f (patch) | |
tree | c2558955c9b51834648887828d9ecfe0f3a74527 /arch/blackfin/Kconfig | |
parent | 0eca52a92735f43462165efe00a7e394345fb38e (diff) |
Blackfin: convert to use arch_gettimeoffset()
Convert Blackfin to use GENERIC_TIME via the arch_getoffset()
infrastructure, reducing the amount of arch specific code we need to
maintain.
I've taken my best swing at converting this, but I'm not 100% confident
I got it right. My cross-compiler is now out of date (gcc4.2) so I
wasn't able to check if it compiled. Any assistance from arch
maintainers or testers to get this merged would be great.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r-- | arch/blackfin/Kconfig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 9a01d445eca8..e51988237d3b 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -229,7 +229,7 @@ endchoice | |||
229 | 229 | ||
230 | config SMP | 230 | config SMP |
231 | depends on BF561 | 231 | depends on BF561 |
232 | select GENERIC_TIME | 232 | select GENERIC_CLOCKEVENTS |
233 | bool "Symmetric multi-processing support" | 233 | bool "Symmetric multi-processing support" |
234 | ---help--- | 234 | ---help--- |
235 | This enables support for systems with more than one CPU, | 235 | This enables support for systems with more than one CPU, |
@@ -613,12 +613,10 @@ comment "Kernel Timer/Scheduler" | |||
613 | source kernel/Kconfig.hz | 613 | source kernel/Kconfig.hz |
614 | 614 | ||
615 | config GENERIC_TIME | 615 | config GENERIC_TIME |
616 | bool "Generic time" | 616 | def_bool y |
617 | default y | ||
618 | 617 | ||
619 | config GENERIC_CLOCKEVENTS | 618 | config GENERIC_CLOCKEVENTS |
620 | bool "Generic clock events" | 619 | bool "Generic clock events" |
621 | depends on GENERIC_TIME | ||
622 | default y | 620 | default y |
623 | 621 | ||
624 | choice | 622 | choice |
@@ -653,6 +651,10 @@ config GPTMR0_CLOCKSOURCE | |||
653 | depends on GENERIC_CLOCKEVENTS | 651 | depends on GENERIC_CLOCKEVENTS |
654 | depends on !TICKSOURCE_GPTMR0 | 652 | depends on !TICKSOURCE_GPTMR0 |
655 | 653 | ||
654 | config ARCH_USES_GETTIMEOFFSET | ||
655 | depends on !GENERIC_CLOCKEVENTS | ||
656 | def_bool y | ||
657 | |||
656 | source kernel/time/Kconfig | 658 | source kernel/time/Kconfig |
657 | 659 | ||
658 | comment "Misc" | 660 | comment "Misc" |