Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155991
b: refs/heads/master
c: 2e13e5f
h: refs/heads/master
i:
  155989: eed88fe
  155987: 295f4b1
  155983: 57dc810
v: v3
  • Loading branch information
Linus Torvalds committed Jul 29, 2009
1 parent 125b25e commit 3c301b4
Show file tree
Hide file tree
Showing 38 changed files with 1,054 additions and 2,912 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5920dadfb4aec6c1372c5570e71bcd3b4837e63c
refs/heads/master: 2e13e5f03538cfded0c463fd60eddd0c8e2cd959
3 changes: 2 additions & 1 deletion trunk/Documentation/filesystems/sysfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ interface.
Using sysfs
~~~~~~~~~~~

sysfs is always compiled in. You can access it by doing:
sysfs is always compiled in if CONFIG_SYSFS is defined. You can access
it by doing:

mount -t sysfs sysfs /sys

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/base/firmware_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ static ssize_t firmware_loading_store(struct device *dev,
goto err;
}
/* Pages will be freed by vfree() */
fw_priv->pages = NULL;
fw_priv->page_array_size = 0;
fw_priv->nr_pages = 0;
complete(&fw_priv->completion);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/base/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ int sysdev_register(struct sys_device *sysdev)
drv->add(sysdev);
}
mutex_unlock(&sysdev_drivers_lock);
kobject_uevent(&sysdev->kobj, KOBJ_ADD);
}

kobject_uevent(&sysdev->kobj, KOBJ_ADD);
return error;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/char/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,7 @@ static int n_tty_open(struct tty_struct *tty)

static inline int input_available_p(struct tty_struct *tty, int amt)
{
tty_flush_to_ldisc(tty);
if (tty->icanon) {
if (tty->canon_data)
return 1;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/char/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ static void pty_close(struct tty_struct *tty, struct file *filp)
return;
tty->link->packet = 0;
set_bit(TTY_OTHER_CLOSED, &tty->link->flags);
tty_flip_buffer_push(tty->link);
wake_up_interruptible(&tty->link->read_wait);
wake_up_interruptible(&tty->link->write_wait);
if (tty->driver->subtype == PTY_TYPE_MASTER) {
Expand Down Expand Up @@ -208,7 +207,6 @@ static int pty_open(struct tty_struct *tty, struct file *filp)
clear_bit(TTY_OTHER_CLOSED, &tty->link->flags);
set_bit(TTY_THROTTLED, &tty->flags);
retval = 0;
tty->low_latency = 1;
out:
return retval;
}
Expand Down
13 changes: 13 additions & 0 deletions trunk/drivers/char/tty_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,19 @@ static void flush_to_ldisc(struct work_struct *work)
tty_ldisc_deref(disc);
}

/**
* tty_flush_to_ldisc
* @tty: tty to push
*
* Push the terminal flip buffers to the line discipline.
*
* Must not be called from IRQ context.
*/
void tty_flush_to_ldisc(struct tty_struct *tty)
{
flush_to_ldisc(&tty->buf.work.work);
}

/**
* tty_flip_buffer_push - terminal
* @tty: tty to push
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ source "drivers/staging/pohmelfs/Kconfig"

source "drivers/staging/stlc45xx/Kconfig"

source "drivers/staging/uc2322/Kconfig"

source "drivers/staging/b3dfg/Kconfig"

source "drivers/staging/phison/Kconfig"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ obj-$(CONFIG_ANDROID) += android/
obj-$(CONFIG_DST) += dst/
obj-$(CONFIG_POHMELFS) += pohmelfs/
obj-$(CONFIG_STLC45XX) += stlc45xx/
obj-$(CONFIG_USB_SERIAL_ATEN2011) += uc2322/
obj-$(CONFIG_B3DFG) += b3dfg/
obj-$(CONFIG_IDE_PHISON) += phison/
obj-$(CONFIG_PLAN9AUTH) += p9auth/
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/staging/android/lowmemorykiller.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,21 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)

read_lock(&tasklist_lock);
for_each_process(p) {
struct mm_struct *mm;
int oom_adj;

task_lock(p);
if (!p->mm) {
mm = p->mm;
if (!mm) {
task_unlock(p);
continue;
}
oom_adj = p->oomkilladj;
oom_adj = mm->oom_adj;
if (oom_adj < min_adj) {
task_unlock(p);
continue;
}
tasksize = get_mm_rss(p->mm);
tasksize = get_mm_rss(mm);
task_unlock(p);
if (tasksize <= 0)
continue;
Expand Down
20 changes: 14 additions & 6 deletions trunk/drivers/staging/serqt_usb2/serqt_usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,18 +360,18 @@ static void qt_read_bulk_callback(struct urb *urb)
if (port_paranoia_check(port, __func__) != 0) {
dbg("%s - port_paranoia_check, exiting\n", __func__);
qt_port->ReadBulkStopped = 1;
return;
goto exit;
}

if (!serial) {
dbg("%s - bad serial pointer, exiting\n", __func__);
return;
goto exit;
}
if (qt_port->closePending == 1) {
/* Were closing , stop reading */
dbg("%s - (qt_port->closepending == 1\n", __func__);
qt_port->ReadBulkStopped = 1;
return;
goto exit;
}

/*
Expand All @@ -381,15 +381,15 @@ static void qt_read_bulk_callback(struct urb *urb)
*/
if (qt_port->RxHolding == 1) {
qt_port->ReadBulkStopped = 1;
return;
goto exit;
}

if (urb->status) {
qt_port->ReadBulkStopped = 1;

dbg("%s - nonzero read bulk status received: %d\n",
__func__, urb->status);
return;
goto exit;
}

if (tty && RxCount) {
Expand Down Expand Up @@ -463,6 +463,8 @@ static void qt_read_bulk_callback(struct urb *urb)
}

schedule_work(&port->work);
exit:
tty_kref_put(tty);
}

/*
Expand Down Expand Up @@ -736,6 +738,11 @@ static int qt_startup(struct usb_serial *serial)
if (!qt_port) {
dbg("%s: kmalloc for quatech_port (%d) failed!.",
__func__, i);
for(--i; i >= 0; i--) {
port = serial->port[i];
kfree(usb_get_serial_port_data(port));
usb_set_serial_port_data(port, NULL);
}
return -ENOMEM;
}
spin_lock_init(&qt_port->lock);
Expand Down Expand Up @@ -1041,7 +1048,7 @@ static void qt_block_until_empty(struct tty_struct *tty,
}
}

static void qt_close( struct usb_serial_port *port)
static void qt_close(struct usb_serial_port *port)
{
struct usb_serial *serial = port->serial;
struct quatech_port *qt_port;
Expand All @@ -1068,6 +1075,7 @@ static void qt_close( struct usb_serial_port *port)
/* wait up to for transmitter to empty */
if (serial->dev)
qt_block_until_empty(tty, qt_port);
tty_kref_put(tty);

/* Close uart channel */
status = qt_close_channel(serial, index);
Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/staging/uc2322/Kconfig

This file was deleted.

1 change: 0 additions & 1 deletion trunk/drivers/staging/uc2322/Makefile

This file was deleted.

7 changes: 0 additions & 7 deletions trunk/drivers/staging/uc2322/TODO

This file was deleted.

Loading

0 comments on commit 3c301b4

Please sign in to comment.