lkml.org 
[lkml]   [2015]   [Dec]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] first line in booting the kernel
Date

What it does : first line of booting kernel, as seen in dmesg(1), will be the Linux kernel signature
(version, compiler, compiler hostname).

What it solves : it appers ahead of cgroup messages at booting.


So, instead of the unaesthetic lines :

Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4 ....

... We will have :

Linux version 4 ...
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct

As normal .


<code>
--- linux-4.4-rc6/init/main.c.original 2015-12-24 09:55:58.208811356 +0200
+++ linux-4.4-rc6/init/main.c 2015-12-24 09:57:06.364813237 +0200
@@ -513,6 +513,8 @@
*/
boot_init_stack_canary();

+ pr_notice("%s", linux_banner);
+
cgroup_init_early();

local_irq_disable();
@@ -524,7 +526,6 @@
*/
boot_cpu_init();
page_address_init();
- pr_notice("%s", linux_banner);
setup_arch(&command_line);
mm_init_cpumask(&init_mm);
setup_command_line(command_line);
</code>

\
 
 \ /
  Last update: 2015-12-24 11:21    [W:0.042 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site