kernel_optimize_test/arch/parisc/kernel
Jiri Slaby 49a5f3cf6a TTY: pdc_cons, fix regression in close
The test in pdc_console_tty_close '!tty->count' was always wrong
because tty->count is decremented after tty->ops->close is called and
thus can never be zero. Hence the 'then' branch was never executed and
the timer never deleted.

This did not matter until commit 5dd5bc40f3 ("TTY: pdc_cons, use
tty_port").  There we needed to set TTY in tty_port to NULL, but this
never happened due to the bug above.

So change the test to really trigger at the last close by changing the
condition to 'tty->count == 1'.

Well, the driver should not touch tty->count at all.  It should use
tty_port->count and count open count there itself.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-and-tested-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-05 16:21:21 -07:00
..
.gitignore
asm-offsets.c
binfmt_elf32.c
cache.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
drivers.c parisc: Add export.h to files needing EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:00 -04:00
entry.S
firmware.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
ftrace.c
hardware.c
head.S
hpmc.S
init_task.c
inventory.c
irq.c
Makefile
module.c
pa7300lc.c
pacache.S
parisc_ksyms.c
pci-dma.c parisc: Add export.h to files needing EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:00 -04:00
pci.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
pdc_chassis.c
pdc_cons.c TTY: pdc_cons, fix regression in close 2012-05-05 16:21:21 -07:00
perf_asm.S
perf_images.h
perf.c
process.c sched/rt: Use schedule_preempt_disabled() 2012-03-01 10:28:03 +01:00
processor.c
ptrace.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
real2.S
setup.c parisc: Add export.h to files needing EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:00 -04:00
signal32.c
signal32.h
signal.c
smp.c PARISC misc on 20120331 2012-03-31 13:32:30 -07:00
stacktrace.c
sys32.h
sys_parisc32.c
sys_parisc.c
syscall_table.S remove remaining references to nfsservctl 2011-08-29 16:31:59 -07:00
syscall.S
time.c clocksource: parisc: Convert to clocksource_register_hz/khz 2011-11-21 19:01:02 -08:00
topology.c
traps.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
unaligned.c
unwind.c
vmlinux.lds.S