Skip to content

Commit

Permalink
[PATCH] uml: redo console locking
Browse files Browse the repository at this point in the history
Fix some console locking problems (including scheduling in atomic) and various
reorderings and cleanup in that code.  Not yet ready for 2.6.12 probably.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed May 1, 2005
1 parent 80f9507 commit b97b77c
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 175 deletions.
16 changes: 8 additions & 8 deletions arch/um/drivers/chan_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,58 +22,58 @@
#ifdef CONFIG_NOCONFIG_CHAN
static void *not_configged_init(char *str, int device, struct chan_opts *opts)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
return(NULL);
}

static int not_configged_open(int input, int output, int primary, void *data,
char **dev_out)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
return(-ENODEV);
}

static void not_configged_close(int fd, void *data)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
}

static int not_configged_read(int fd, char *c_out, void *data)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
return(-EIO);
}

static int not_configged_write(int fd, const char *buf, int len, void *data)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
return(-EIO);
}

static int not_configged_console_write(int fd, const char *buf, int len,
void *data)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
return(-EIO);
}

static int not_configged_window_size(int fd, void *data, unsigned short *rows,
unsigned short *cols)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
return(-ENODEV);
}

static void not_configged_free(void *data)
{
printk(KERN_ERR "Using a channel type which is configured out of "
printf(KERN_ERR "Using a channel type which is configured out of "
"UML\n");
}

Expand Down
Loading

0 comments on commit b97b77c

Please sign in to comment.