[git pull] printk fix (was: Re: X fails to start with latest Linus git)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Linux Kernel Mailing List <linux-kernel@...>, Kevin Winchester <kjwinchester@...>
Date: Sunday, January 27, 2008 - 3:12 am

Linus,

please pull the following printk fix:

   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched.git

it reverts 19ef9309273d: Kevin Winchester reported a 
CONFIG_PRINTK_TIME=y related hang during X startup, and biscted it down 
to this commit.

	Ingo

------------------>
Ingo Molnar (1):
      printk: revert ktime_get() timestamps

 printk.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kernel/printk.c b/kernel/printk.c
index 423a8c7..3b7c968 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -702,9 +702,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
 					loglev_char = default_message_loglevel
 						+ '0';
 				}
-				t = 0;
-				if (system_state != SYSTEM_BOOTING)
-					t = ktime_to_ns(ktime_get());
+				t = cpu_clock(printk_cpu);
 				nanosec_rem = do_div(t, 1000000000);
 				tlen = sprintf(tbuf,
 						"<%c>[%5lu.%06lu] ",

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
X fails to start with latest Linus git, Kevin Winchester, (Sat Jan 26, 8:19 pm)
[git pull] printk fix (was: Re: X fails to start with latest..., Ingo Molnar, (Sun Jan 27, 3:12 am)
Re: X fails to start with latest Linus git, Kevin Winchester, (Sat Jan 26, 8:35 pm)
Re: X fails to start with latest Linus git, Ingo Molnar, (Sun Jan 27, 2:27 am)
Re: X fails to start with latest Linus git, Kevin Winchester, (Sun Jan 27, 8:31 am)
Re: X fails to start with latest Linus git, Ingo Molnar, (Sun Jan 27, 8:37 am)
Re: X fails to start with latest Linus git, Kevin Winchester, (Sun Jan 27, 7:10 pm)
Re: X fails to start with latest Linus git, Ingo Molnar, (Sun Jan 27, 8:41 am)
Re: X fails to start with latest Linus git, Ingo Molnar, (Sun Jan 27, 8:42 am)
Re: X fails to start with latest Linus git, Kevin Winchester, (Sun Jan 27, 7:35 pm)
Re: X fails to start with latest Linus git, Kevin Winchester, (Sun Jan 27, 7:12 pm)
Re: X fails to start with latest Linus git, Ingo Molnar, (Sun Jan 27, 8:35 am)
Re: X fails to start with latest Linus git, Kevin Winchester, (Sun Jan 27, 7:08 pm)
Re: X fails to start with latest Linus git, Jan Engelhardt, (Sun Jan 27, 6:42 am)