mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Kill useless pm_access from vt.c
@ 2004-10-25 22:21 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2004-10-25 22:21 UTC (permalink / raw)
  To: kernel list, Andrew Morton

Hi!

pm_access does nothing these days, and looks ugly. This removes it
from vt.c. That actually looks like last user in the tree; it should
be possible to kill pm_access completely after 2.6.10. Ouch and add
warning to obsolete pm.txt file. Please apply,

								Pavel

--- clean/drivers/char/vt.c	2004-10-01 00:30:12.000000000 +0200
+++ linux/drivers/char/vt.c	2004-10-26 00:14:17.000000000 +0200
@@ -2186,8 +2186,6 @@
 	if (!printable || test_and_set_bit(0, &printing))
 		return;
 
-	pm_access(pm_con);
-
 	if (kmsg_redirect && vc_cons_allocated(kmsg_redirect - 1))
 		currcons = kmsg_redirect - 1;
 
@@ -2387,7 +2385,6 @@
 {
 	int	retval;
 
-	pm_access(pm_con);
 	retval = do_con_write(tty, from_user, buf, count);
 	con_flush_chars(tty);
 
@@ -2398,7 +2395,6 @@
 {
 	if (in_interrupt())
 		return;	/* n_r3964 calls put_char() from interrupt context */
-	pm_access(pm_con);
 	do_con_write(tty, 0, &ch, 1);
 }
 
@@ -2467,8 +2463,6 @@
 	if (in_interrupt())	/* from flush_to_ldisc */
 		return;
 
-	pm_access(pm_con);
-	
 	/* if we race with con_close(), vt may be null */
 	acquire_console_sem();
 	vt = tty->driver_data;


--- clean/Documentation/pm.txt	2001-12-19 22:38:12.000000000 +0100
+++ linux/Documentation/pm.txt	2004-10-26 00:18:13.000000000 +0200
@@ -36,8 +36,8 @@
   apmd:   http://worldvisions.ca/~apenwarr/apmd/
   acpid:  http://acpid.sf.net/
 
-Driver Interface
-----------------
+Driver Interface -- OBSOLETE, DO NOT USE!
+----------------*************************
 If you are writing a new driver or maintaining an old driver, it
 should include power management support.  Without power management
 support, a single driver may prevent a system with power management
@@ -262,8 +262,8 @@
 
 ACPI Development mailing list: acpi-devel@lists.sourceforge.net
 
-System Interface
-----------------
+System Interface -- OBSOLETE, DO NOT USE!
+----------------*************************
 If you are providing new power management support to Linux (ie.
 adding support for something like APM or ACPI), you should
 communicate with drivers through the existing generic power

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-25 23:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-25 22:21 Kill useless pm_access from vt.c Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome