diff options
author | Kay Sievers <kay@vrfy.org> | 2012-07-10 23:29:29 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-07-10 23:29:29 +0200 |
commit | 590581bd3b51fbc917fcf36a8b7fe5ea05b8128d (patch) | |
tree | cf8e0c4f4d96207d302c5764e4ca77309f57fbcf | |
parent | 2a0551107628f71eba4f48183e9fa072d29e7bc0 (diff) | |
download | patches-590581bd3b51fbc917fcf36a8b7fe5ea05b8128d.tar.gz |
update test patch
-rw-r--r-- | series | 1 | ||||
-rw-r--r-- | test-console-blocked.patch (renamed from kmsg-test-console-blocked.patch) | 36 |
2 files changed, 24 insertions, 13 deletions
@@ -1,2 +1,3 @@ #test-modules.patch +#test-console-blocked.patch config-no-printk.patch diff --git a/kmsg-test-console-blocked.patch b/test-console-blocked.patch index 02e333c..58ab811 100644 --- a/kmsg-test-console-blocked.patch +++ b/test-console-blocked.patch @@ -1,16 +1,17 @@ diff --git a/init/main.c b/init/main.c -index b5cc0a7..23a72d6 100644 +index b5cc0a7..640623a 100644 --- a/init/main.c +++ b/init/main.c -@@ -68,6 +68,7 @@ +@@ -68,6 +68,8 @@ #include <linux/shmem_fs.h> #include <linux/slab.h> #include <linux/perf_event.h> +#include <linux/console.h> ++#include <linux/mm.h> #include <asm/io.h> #include <asm/bugs.h> -@@ -462,6 +463,16 @@ static void __init mm_init(void) +@@ -462,6 +464,16 @@ static void __init mm_init(void) vmalloc_init(); } @@ -27,7 +28,7 @@ index b5cc0a7..23a72d6 100644 asmlinkage void __init start_kernel(void) { char * command_line; -@@ -562,6 +573,24 @@ asmlinkage void __init start_kernel(void) +@@ -562,6 +574,33 @@ asmlinkage void __init start_kernel(void) kmem_cache_init_late(); @@ -36,23 +37,32 @@ index b5cc0a7..23a72d6 100644 + smp_call_function_single(1, contprint, NULL, 1); + smp_call_function_single(0, contprint, NULL, 1); + smp_call_function_single(1, contprint, NULL, 1); ++ ++ show_free_areas(0); ++ + { -+ int i, j; ++ int i; + -+ for (i = 0; i < 8; i++) { -+ printk("\n+++"); -+ for (j = 0; j < 8; j++) -+ printk("-%i-%i-", i, j); -+ } -+ printk("\n"); ++ pr_info("["); ++ for (i = 0; i < 4; i++) ++ pr_cont("%i ", i); ++ pr_cont("]\n"); + } -+ + console_unlock(); + ++ { ++ int i; ++ ++ pr_info("["); ++ for (i = 0; i < 4; i++) ++ pr_cont("%i ", i); ++ pr_cont("]\n"); ++ } ++ /* * HACK ALERT! This is early. We're enabling the console before * we've done PCI setups etc, and console_init() must be aware of -@@ -864,6 +893,13 @@ static int __init kernel_init(void * unused) +@@ -864,6 +903,13 @@ static int __init kernel_init(void * unused) do_basic_setup(); |