diff options
| author | Stephen Boyd <sboyd@codeaurora.org> | 2013-06-02 02:39:40 -0400 |
|---|---|---|
| committer | John Stultz <john.stultz@linaro.org> | 2013-06-12 17:02:13 -0400 |
| commit | 38ff87f77af0b5a93fc8581cff1d6e5692ab8970 (patch) | |
| tree | 7a157528657400d0486cd4e74da98bad40992c3c /init | |
| parent | ffbfb5e316f0db486798ccf1db36a577ffe79637 (diff) | |
sched_clock: Make ARM's sched_clock generic for all architectures
Nothing about the sched_clock implementation in the ARM port is
specific to the architecture. Generalize the code so that other
architectures can use it by selecting GENERIC_SCHED_CLOCK.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[jstultz: Merge minor collisions with other patches in my tree]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 3 | ||||
| -rw-r--r-- | init/main.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 9d3a7887a6d3..1a3f93329a67 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -757,6 +757,9 @@ config LOG_BUF_SHIFT | |||
| 757 | config HAVE_UNSTABLE_SCHED_CLOCK | 757 | config HAVE_UNSTABLE_SCHED_CLOCK |
| 758 | bool | 758 | bool |
| 759 | 759 | ||
| 760 | config GENERIC_SCHED_CLOCK | ||
| 761 | bool | ||
| 762 | |||
| 760 | # | 763 | # |
| 761 | # For architectures that want to enable the support for NUMA-affine scheduler | 764 | # For architectures that want to enable the support for NUMA-affine scheduler |
| 762 | # balancing logic: | 765 | # balancing logic: |
diff --git a/init/main.c b/init/main.c index 9484f4ba88d0..bef4a6ac7c76 100644 --- a/init/main.c +++ b/init/main.c | |||
| @@ -74,6 +74,7 @@ | |||
| 74 | #include <linux/ptrace.h> | 74 | #include <linux/ptrace.h> |
| 75 | #include <linux/blkdev.h> | 75 | #include <linux/blkdev.h> |
| 76 | #include <linux/elevator.h> | 76 | #include <linux/elevator.h> |
| 77 | #include <linux/sched_clock.h> | ||
| 77 | 78 | ||
| 78 | #include <asm/io.h> | 79 | #include <asm/io.h> |
| 79 | #include <asm/bugs.h> | 80 | #include <asm/bugs.h> |
| @@ -555,6 +556,7 @@ asmlinkage void __init start_kernel(void) | |||
| 555 | softirq_init(); | 556 | softirq_init(); |
| 556 | timekeeping_init(); | 557 | timekeeping_init(); |
| 557 | time_init(); | 558 | time_init(); |
| 559 | sched_clock_postinit(); | ||
| 558 | profile_init(); | 560 | profile_init(); |
| 559 | call_function_init(); | 561 | call_function_init(); |
| 560 | WARN(!irqs_disabled(), "Interrupts were enabled early\n"); | 562 | WARN(!irqs_disabled(), "Interrupts were enabled early\n"); |
