<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/printk.c, branch v2.6.20</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.20</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.20'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2006-12-22T16:55:47Z</updated>
<entry>
<title>[PATCH] make kernel/printk.c:ignore_loglevel_setup() static</title>
<updated>2006-12-22T16:55:47Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2006-12-22T09:07:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=99eea6a105106a94758724ccce996607f60bc0f2'/>
<id>urn:sha1:99eea6a105106a94758724ccce996607f60bc0f2</id>
<content type='text'>
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] add ignore_loglevel boot option</title>
<updated>2006-12-07T16:39:47Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2006-12-07T04:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=792908225064b1d841a8990b9d1d1cfc4e0e5bb2'/>
<id>urn:sha1:792908225064b1d841a8990b9d1d1cfc4e0e5bb2</id>
<content type='text'>
Sometimes the kernel prints something interesting while userspace bootup
keeps messages turned off via loglevel.  Enable the printing of /all/
kernel messages via the "ignore_loglevel" boot option.  Off by default.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] remove EXPORT_UNUSED_SYMBOL'ed symbols</title>
<updated>2006-12-07T16:39:44Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2006-12-07T04:40:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=045f147f3290395661b56b9231fc4d221e150963'/>
<id>urn:sha1:045f147f3290395661b56b9231fc4d221e150963</id>
<content type='text'>
In time for 2.6.20, we can get rid of this junk.

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] remove the syslog interface when printk is disabled</title>
<updated>2006-12-07T16:39:38Z</updated>
<author>
<name>Mike Galbraith</name>
<email>efault@gmx.de</email>
</author>
<published>2006-12-07T04:37:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c36264dfb2d6fa6383082de0a1bba8e12b477da1'/>
<id>urn:sha1:c36264dfb2d6fa6383082de0a1bba8e12b477da1</id>
<content type='text'>
Attempts to read() from the non-existent dmesg buffer will return zero and
userspace tends to get stuck in a busyloop.

So just remove /dev/kmsg altogether if CONFIG_PRINTK=n.

Signed-off-by: Mike Galbraith &lt;efault@gmx.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add printk_timed_ratelimit()</title>
<updated>2006-11-03T20:27:58Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2006-11-03T06:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f46c483357c2d87606bbefb511321e3efd4baae0'/>
<id>urn:sha1:f46c483357c2d87606bbefb511321e3efd4baae0</id>
<content type='text'>
printk_ratelimit() has global state which makes it not useful for callers
which wish to perform ratelimiting at a particular frequency.

Add a printk_timed_ratelimit() which utilises caller-provided state storage to
permit more flexibility.

This function can in fact be used for things other than printk ratelimiting
and is perhaps poorly named.

Cc: Ulrich Drepper &lt;drepper@redhat.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] lockdep: fix printk recursion logic</title>
<updated>2006-10-11T18:14:24Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2006-10-11T08:22:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=256a6b41365e17cebe5c2fc91ddff716c9aa055a'/>
<id>urn:sha1:256a6b41365e17cebe5c2fc91ddff716c9aa055a</id>
<content type='text'>
Bug reported and fixed by Tilman Schmidt &lt;tilman@imap.cc&gt;: if lockdep is
enabled then log messages make it to /var/log/messages belatedly.  The
reason is a missed wakeup of klogd.

Initially there was only a lockdep_internal() protection against lockdep
recursion within vprintk() - it grew the 'outer' lockdep_off()/on()
protection only later on.  But that lockdep_off() made the
release_console_sem() within vprintk() always happen under the
lockdep_internal() condition, causing the bug.

The right solution to remove the inner protection against recursion here -
the outer one is enough.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Tilman Schmidt &lt;tilman@imap.cc&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] PM: make it possible to disable console suspending</title>
<updated>2006-09-26T15:49:03Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rjw@sisk.pl</email>
</author>
<published>2006-09-26T06:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c8eb8b4025175f967af0ba8e933f23aa9954dc35'/>
<id>urn:sha1:c8eb8b4025175f967af0ba8e933f23aa9954dc35</id>
<content type='text'>
Change suspend_console() so that it waits for all consoles to flush the
remaining messages and make it possible to switch the console suspending off
with the help of a Kconfig option.

Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Cc: Stefan Seyfried &lt;seife@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] vt: printk: Fix framebuffer console triggering might_sleep assertion</title>
<updated>2006-08-06T15:57:47Z</updated>
<author>
<name>Antonino A. Daplas</name>
<email>adaplas@gmail.com</email>
</author>
<published>2006-08-05T19:14:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=78944e549d36673eb6265a2411574e79c28e23dc'/>
<id>urn:sha1:78944e549d36673eb6265a2411574e79c28e23dc</id>
<content type='text'>
Reported by: Dave Jones

Whilst printk'ing to both console and serial console, I got this...
(2.6.18rc1)

BUG: sleeping function called from invalid context at kernel/sched.c:4438
in_atomic():0, irqs_disabled():1

Call Trace:
 [&lt;ffffffff80271db8&gt;] show_trace+0xaa/0x23d
 [&lt;ffffffff80271f60&gt;] dump_stack+0x15/0x17
 [&lt;ffffffff8020b9f8&gt;] __might_sleep+0xb2/0xb4
 [&lt;ffffffff8029232e&gt;] __cond_resched+0x15/0x55
 [&lt;ffffffff80267eb8&gt;] cond_resched+0x3b/0x42
 [&lt;ffffffff80268c64&gt;] console_conditional_schedule+0x12/0x14
 [&lt;ffffffff80368159&gt;] fbcon_redraw+0xf6/0x160
 [&lt;ffffffff80369c58&gt;] fbcon_scroll+0x5d9/0xb52
 [&lt;ffffffff803a43c4&gt;] scrup+0x6b/0xd6
 [&lt;ffffffff803a4453&gt;] lf+0x24/0x44
 [&lt;ffffffff803a7ff8&gt;] vt_console_print+0x166/0x23d
 [&lt;ffffffff80295528&gt;] __call_console_drivers+0x65/0x76
 [&lt;ffffffff80295597&gt;] _call_console_drivers+0x5e/0x62
 [&lt;ffffffff80217e3f&gt;] release_console_sem+0x14b/0x232
 [&lt;ffffffff8036acd6&gt;] fb_flashcursor+0x279/0x2a6
 [&lt;ffffffff80251e3f&gt;] run_workqueue+0xa8/0xfb
 [&lt;ffffffff8024e5e0&gt;] worker_thread+0xef/0x122
 [&lt;ffffffff8023660f&gt;] kthread+0x100/0x136
 [&lt;ffffffff8026419e&gt;] child_rip+0x8/0x12

This can occur when release_console_sem() is called but the log
buffer still has contents that need to be flushed. The console drivers
are called while the console_may_schedule flag is still true. The
might_sleep() is triggered when fbcon calls console_conditional_schedule().

Fix by setting console_may_schedule to zero earlier, before the call to the
console drivers.

Signed-off-by: Antonino Daplas &lt;adaplas@pol.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] kernel/printk.c: EXPORT_SYMBOL_UNUSED</title>
<updated>2006-07-10T20:24:17Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2006-07-10T11:44:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c0fc84d2e5bb4a9e3ae470812a00cccba85a48b8'/>
<id>urn:sha1:c0fc84d2e5bb4a9e3ae470812a00cccba85a48b8</id>
<content type='text'>
This patch marks unused exports as EXPORT_SYMBOL_UNUSED.

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] lockdep: do not recurse in printk</title>
<updated>2006-07-03T22:27:05Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2006-07-03T07:24:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a0f1ccfd8d37457a6d8a9e01acebeefcdfcc306e'/>
<id>urn:sha1:a0f1ccfd8d37457a6d8a9e01acebeefcdfcc306e</id>
<content type='text'>
Make printk()-ing from within the lock validation code safer by using the
lockdep-recursion counter.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
