diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 23 | ||||
-rw-r--r-- | init/calibrate.c | 18 | ||||
-rw-r--r-- | init/main.c | 10 |
3 files changed, 40 insertions, 11 deletions
diff --git a/init/Kconfig b/init/Kconfig index 5d6febaea56d..229bbbbe7141 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -758,6 +758,9 @@ config LOG_BUF_SHIFT config HAVE_UNSTABLE_SCHED_CLOCK bool +config GENERIC_SCHED_CLOCK + bool + # # For architectures that want to enable the support for NUMA-affine scheduler # balancing logic: @@ -1251,6 +1254,12 @@ config HOTPLUG config HAVE_PCSPKR_PLATFORM bool +config PANIC_TIMEOUT + int "Default panic timeout" + default 0 + help + Set default panic timeout. + menuconfig EXPERT bool "Configure standard kernel features (expert users)" # Unhide debug options, to make the on-by-default options visible @@ -1487,6 +1496,20 @@ config PERF_EVENTS Say Y if unsure. +config PERF_ANDROID_BACKTRACE + default y + bool "Backtracing support for the Perf tool on Android" + depends on PERF_EVENTS && ANDROID + help + This config changes default function stack format that Perf + profiler uses for backtracing. With this config enabled Perf + profiler will use stack format of the Android OS for its + operation. + + Say Y only if this kernel will be used with Android OS. + + Say N if unsure. + config DEBUG_PERF_USE_VMALLOC default n bool "Debug: use vmalloc to back perf mmap() buffers" diff --git a/init/calibrate.c b/init/calibrate.c index fda0a7b0f06c..282a92ae45c6 100644 --- a/init/calibrate.c +++ b/init/calibrate.c @@ -95,7 +95,7 @@ static unsigned long __cpuinit calibrate_delay_direct(void) * >= 12.5% apart, redo calibration. */ if (start >= post_end) - printk(KERN_NOTICE "calibrate_delay_direct() ignoring " + pr_info("calibrate_delay_direct() ignoring " "timer_rate as we had a TSC wrap around" " start=%lu >=post_end=%lu\n", start, post_end); @@ -134,15 +134,13 @@ static unsigned long __cpuinit calibrate_delay_direct(void) good_timer_count = 0; if ((measured_times[max] - estimate) < (estimate - measured_times[min])) { - printk(KERN_NOTICE "calibrate_delay_direct() dropping " - "min bogoMips estimate %d = %lu\n", - min, measured_times[min]); + pr_info("%s() dropping min delay estimate %d = %lu\n", + __func__, min, measured_times[min]); measured_times[min] = 0; min = max; } else { - printk(KERN_NOTICE "calibrate_delay_direct() dropping " - "max bogoMips estimate %d = %lu\n", - max, measured_times[max]); + pr_info("%s() dropping max delay estimate %d = %lu\n", + __func__, max, measured_times[max]); measured_times[max] = 0; max = min; } @@ -160,7 +158,7 @@ static unsigned long __cpuinit calibrate_delay_direct(void) } - printk(KERN_NOTICE "calibrate_delay_direct() failed to get a good " + pr_info("calibrate_delay_direct() failed to get a good " "estimate for loops_per_jiffy.\nProbably due to long platform " "interrupts. Consider using \"lpj=\" boot option.\n"); return 0; @@ -292,9 +290,7 @@ void __cpuinit calibrate_delay(void) } per_cpu(cpu_loops_per_jiffy, this_cpu) = lpj; if (!printed) - pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n", - lpj/(500000/HZ), - (lpj/(5000/HZ)) % 100, lpj); + pr_cont("lpj=%lu\n", lpj); loops_per_jiffy = lpj; printed = true; diff --git a/init/main.c b/init/main.c index e83ac04fda97..c22e93f8cffa 100644 --- a/init/main.c +++ b/init/main.c @@ -75,7 +75,9 @@ #include <linux/blkdev.h> #include <linux/elevator.h> #include <linux/random.h> +#include <linux/sched_clock.h> +#include <linux/pasr.h> #include <asm/io.h> #include <asm/bugs.h> #include <asm/setup.h> @@ -500,6 +502,9 @@ asmlinkage void __init start_kernel(void) page_address_init(); pr_notice("%s", linux_banner); setup_arch(&command_line); +#ifdef CONFIG_PASR + early_pasr_setup(); +#endif mm_init_owner(&init_mm, &init_task); mm_init_cpumask(&init_mm); setup_command_line(command_line); @@ -556,6 +561,7 @@ asmlinkage void __init start_kernel(void) softirq_init(); timekeeping_init(); time_init(); + sched_clock_postinit(); profile_init(); call_function_init(); WARN(!irqs_disabled(), "Interrupts were enabled early\n"); @@ -564,6 +570,10 @@ asmlinkage void __init start_kernel(void) kmem_cache_init_late(); +#ifdef CONFIG_PASR + late_pasr_setup(); +#endif + /* * HACK ALERT! This is early. We're enabling the console before * we've done PCI setups etc, and console_init() must be aware of |