Displaying 18 results from an estimated 18 matches for "acquire_console_sem".
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...chunk of the patches changes all
acquire/release_console_sem() to acquire/release_console_mutex()
this commit makes things use more neutral function names
which dont make implications about the underlying lock.
the only real change is the return value of console_trylock
which is inverted from try_acquire_console_sem()
Signed-off-by: Torben Hohn <torbenh at gmx.de>
CC: Thomas Gleixner <tglx at tglx.de>
---
arch/arm/mach-omap2/pm24xx.c | 4 +-
arch/arm/mach-omap2/pm34xx.c | 4 +-
arch/arm/mach-omap2/serial.c | 4 +-
arch/parisc/kernel/pdc_cons.c |...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...chunk of the patches changes all
acquire/release_console_sem() to acquire/release_console_mutex()
this commit makes things use more neutral function names
which dont make implications about the underlying lock.
the only real change is the return value of console_trylock
which is inverted from try_acquire_console_sem()
Signed-off-by: Torben Hohn <torbenh at gmx.de>
CC: Thomas Gleixner <tglx at tglx.de>
---
arch/arm/mach-omap2/pm24xx.c | 4 +-
arch/arm/mach-omap2/pm34xx.c | 4 +-
arch/arm/mach-omap2/serial.c | 4 +-
arch/parisc/kernel/pdc_cons.c |...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...chunk of the patches changes all
acquire/release_console_sem() to acquire/release_console_mutex()
this commit makes things use more neutral function names
which dont make implications about the underlying lock.
the only real change is the return value of console_trylock
which is inverted from try_acquire_console_sem()
Signed-off-by: Torben Hohn <torbenh at gmx.de>
CC: Thomas Gleixner <tglx at tglx.de>
---
arch/arm/mach-omap2/pm24xx.c | 4 +-
arch/arm/mach-omap2/pm34xx.c | 4 +-
arch/arm/mach-omap2/serial.c | 4 +-
arch/parisc/kernel/pdc_cons.c |...
2010 Nov 03
1
[PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
...| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index 428d273..4abb0b9 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void)
return;
acquire_console_sem();
- for (c = console_drivers; c; c = c->next) {
+ for_each_console(c) {
if (!strcmp(c->name, "tty") && c->index == 0)
break;
}
--
1.7.3.1
2010 Nov 03
1
[PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
...| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index 428d273..4abb0b9 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void)
return;
acquire_console_sem();
- for (c = console_drivers; c; c = c->next) {
+ for_each_console(c) {
if (!strcmp(c->name, "tty") && c->index == 0)
break;
}
--
1.7.3.1
2010 Nov 03
1
[PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
...| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index 428d273..4abb0b9 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void)
return;
acquire_console_sem();
- for (c = console_drivers; c; c = c->next) {
+ for_each_console(c) {
if (!strcmp(c->name, "tty") && c->index == 0)
break;
}
--
1.7.3.1
2008 Feb 27
1
xen: Make hvc0 the preferred console in domU
This makes the Xen console just work. Before, you had to ask for it
on the kernel command line with console=hvc0
Signed-off-by: Markus Armbruster <armbru at redhat.com>
---
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 49e5358..df63185 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -25,6 +25,7 @@
#include <linux/mm.h>
#include
2008 Apr 04
1
[PATCH] xen: Enable Xen console by default in domU
...s_device *dev,
if (ret < 0)
goto error;
+ xenfb_make_preferred_console();
return 0;
error_nomem:
@@ -358,6 +361,25 @@ static int __devinit xenfb_probe(struct xenbus_device *dev,
return ret;
}
+static __devinit void
+xenfb_make_preferred_console(void)
+{
+ struct console *c;
+
+ acquire_console_sem();
+ for (c = console_drivers; c; c = c->next) {
+ if (!strcmp(c->name, "tty") && c->index == 0)
+ break;
+ }
+ release_console_sem();
+ if (c) {
+ unregister_console(c);
+ c->flags |= CON_CONSDEV;
+ c->flags &= ~CON_PRINTBUFFER; /* don't print again *...
2008 Apr 04
1
[PATCH] xen: Enable Xen console by default in domU
...s_device *dev,
if (ret < 0)
goto error;
+ xenfb_make_preferred_console();
return 0;
error_nomem:
@@ -358,6 +361,25 @@ static int __devinit xenfb_probe(struct xenbus_device *dev,
return ret;
}
+static __devinit void
+xenfb_make_preferred_console(void)
+{
+ struct console *c;
+
+ acquire_console_sem();
+ for (c = console_drivers; c; c = c->next) {
+ if (!strcmp(c->name, "tty") && c->index == 0)
+ break;
+ }
+ release_console_sem();
+ if (c) {
+ unregister_console(c);
+ c->flags |= CON_CONSDEV;
+ c->flags &= ~CON_PRINTBUFFER; /* don't print again *...
2008 Apr 04
1
[PATCH] xen: Enable Xen console by default in domU
...s_device *dev,
if (ret < 0)
goto error;
+ xenfb_make_preferred_console();
return 0;
error_nomem:
@@ -358,6 +361,25 @@ static int __devinit xenfb_probe(struct xenbus_device *dev,
return ret;
}
+static __devinit void
+xenfb_make_preferred_console(void)
+{
+ struct console *c;
+
+ acquire_console_sem();
+ for (c = console_drivers; c; c = c->next) {
+ if (!strcmp(c->name, "tty") && c->index == 0)
+ break;
+ }
+ release_console_sem();
+ if (c) {
+ unregister_console(c);
+ c->flags |= CON_CONSDEV;
+ c->flags &= ~CON_PRINTBUFFER; /* don't print again *...
2002 Dec 06
1
Assertion failure in do_get_write_access() at fs/jbd/transaction.c:746
...call_call+0x7/0xb
Code: 0f 0b ea 02 60 16 29 c0 83 c4 14 8b 4d 08 8b 45 0c ff 49 04
<6>note: bash[227] exited with preempt_count 2
Debug: sleeping function called from illegal context at
include/asm/semaphore.h:
119
Call Trace:
[<c011293c>] __might_sleep+0x54/0x58
[<c0114fdd>] acquire_console_sem+0x2d/0x4c
[<c01d7d3d>] console_callback+0x9/0xb8
[<c011f8f4>] flush_workqueue+0xfc/0x1a8
[<c01d7d34>] console_callback+0x0/0xb8
[<c0111860>] default_wake_function+0x0/0x34
[<c0111860>] default_wake_function+0x0/0x34
[<c011fbd5>] flush_scheduled_work+0xd/0x1...
2010 Apr 18
8
[Bug 27720] New: Hard Hang on suspend - 8600M GS
https://bugs.freedesktop.org/show_bug.cgi?id=27720
Summary: Hard Hang on suspend - 8600M GS
Product: xorg
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
2008 May 21
6
[PATCH 0/5] xen pvfb: Para-virtual framebuffer, keyboard and pointer driver updates
This is an update to the Linux part of the Xen PVFB. Linux Xen PVFB
is a pair of Xen para-virtual frontend device drivers:
drivers/video/xen-fbfront.c provides a framebuffer, and
drivers/input/xen-kbdfront provides keyboard and mouse. Their
backends run in dom0 user space.
Parts in this patch series:
1. Enable Xen console by default in domU
2. Pointer z-axis (mouse wheel) support
3. Module
2008 May 21
6
[PATCH 0/5] xen pvfb: Para-virtual framebuffer, keyboard and pointer driver updates
This is an update to the Linux part of the Xen PVFB. Linux Xen PVFB
is a pair of Xen para-virtual frontend device drivers:
drivers/video/xen-fbfront.c provides a framebuffer, and
drivers/input/xen-kbdfront provides keyboard and mouse. Their
backends run in dom0 user space.
Parts in this patch series:
1. Enable Xen console by default in domU
2. Pointer z-axis (mouse wheel) support
3. Module
2008 May 21
6
[PATCH 0/5] xen pvfb: Para-virtual framebuffer, keyboard and pointer driver updates
This is an update to the Linux part of the Xen PVFB. Linux Xen PVFB
is a pair of Xen para-virtual frontend device drivers:
drivers/video/xen-fbfront.c provides a framebuffer, and
drivers/input/xen-kbdfront provides keyboard and mouse. Their
backends run in dom0 user space.
Parts in this patch series:
1. Enable Xen console by default in domU
2. Pointer z-axis (mouse wheel) support
3. Module
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...io_fb_imageblit,
> + .fb_check_var = virtio_fb_check_var,
> + .fb_set_par = virtio_fb_set_par,
> +};
> +
> +static __devinit void
> +virtio_fb_make_preferred_console(void)
> +{
> + struct console *c;
> +
> + if (console_set_on_cmdline)
> + return;
> +
> + acquire_console_sem();
> + for (c = console_drivers; c; c = c->next) {
> + if (!strcmp(c->name, "tty") && c->index == 0)
> + break;
> + }
{} not needed
> + release_console_sem();
Just a thought: can console c go away at this point?
> + if (c) {
> + unregister_con...
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...io_fb_imageblit,
> + .fb_check_var = virtio_fb_check_var,
> + .fb_set_par = virtio_fb_set_par,
> +};
> +
> +static __devinit void
> +virtio_fb_make_preferred_console(void)
> +{
> + struct console *c;
> +
> + if (console_set_on_cmdline)
> + return;
> +
> + acquire_console_sem();
> + for (c = console_drivers; c; c = c->next) {
> + if (!strcmp(c->name, "tty") && c->index == 0)
> + break;
> + }
{} not needed
> + release_console_sem();
Just a thought: can console c go away at this point?
> + if (c) {
> + unregister_con...
2010 Mar 02
3
2.6.33 high cpu usage
With the ATI bug I was hitting earlier fixed, only my btrfs partition
continues to show high cpu usage for some operations.
Rsync, git pull, git checkout and svn up are typicall operations which
trigger the high cpu usage.
As an example, this perf report is from using git checkout to change to
a new branch; the change needed to checkout 208 files out of about 1600
total files. du(1) reports