Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8cf4ddc3
Commit
8cf4ddc3
authored
Aug 04, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[power] Kill some unnessecary printk()s.
From Pavel Machek.
parent
118e1551
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
13 deletions
+2
-13
arch/i386/kernel/sysenter.c
arch/i386/kernel/sysenter.c
+0
-2
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+1
-1
drivers/base/power.c
drivers/base/power.c
+0
-6
kernel/power/swsusp.c
kernel/power/swsusp.c
+1
-4
No files found.
arch/i386/kernel/sysenter.c
View file @
8cf4ddc3
...
...
@@ -31,8 +31,6 @@ void enable_sep_cpu(void *info)
wrmsr
(
MSR_IA32_SYSENTER_CS
,
__KERNEL_CS
,
0
);
wrmsr
(
MSR_IA32_SYSENTER_ESP
,
tss
->
esp1
,
0
);
wrmsr
(
MSR_IA32_SYSENTER_EIP
,
(
unsigned
long
)
sysenter_entry
,
0
);
printk
(
"Enabling SEP on CPU %d
\n
"
,
cpu
);
put_cpu
();
}
...
...
drivers/acpi/sleep/main.c
View file @
8cf4ddc3
...
...
@@ -197,7 +197,7 @@ acpi_system_suspend(
break
;
}
local_irq_restore
(
flags
);
printk
(
KERN_
CRIT
"Back to C!
\n
"
);
printk
(
KERN_
DEBUG
"Back to C!
\n
"
);
return
status
;
}
...
...
drivers/base/power.c
View file @
8cf4ddc3
...
...
@@ -52,8 +52,6 @@ int device_suspend(u32 state, u32 level)
struct
device
*
dev
;
int
error
=
0
;
printk
(
KERN_EMERG
"Suspending devices
\n
"
);
down_write
(
&
devices_subsys
.
rwsem
);
list_for_each_entry_reverse
(
dev
,
&
devices_subsys
.
kset
.
list
,
kobj
.
entry
)
{
if
(
dev
->
driver
&&
dev
->
driver
->
suspend
)
{
...
...
@@ -114,8 +112,6 @@ void device_resume(u32 level)
}
}
up_write
(
&
devices_subsys
.
rwsem
);
printk
(
KERN_EMERG
"Devices Resumed
\n
"
);
}
/**
...
...
@@ -125,8 +121,6 @@ void device_shutdown(void)
{
struct
device
*
dev
;
printk
(
KERN_EMERG
"Shutting down devices
\n
"
);
down_write
(
&
devices_subsys
.
rwsem
);
list_for_each_entry_reverse
(
dev
,
&
devices_subsys
.
kset
.
list
,
kobj
.
entry
)
{
pr_debug
(
"shutting down %s: "
,
dev
->
name
);
...
...
kernel/power/swsusp.c
View file @
8cf4ddc3
...
...
@@ -459,7 +459,6 @@ static suspend_pagedir_t *create_suspend_pagedir(int nr_copy_pages)
free_suspend_pagedir
((
unsigned
long
)
pagedir
);
return
NULL
;
}
printk
(
"."
);
SetPageNosave
(
virt_to_page
(
p
->
address
));
p
->
orig_address
=
0
;
p
++
;
...
...
@@ -750,7 +749,6 @@ void do_magic_suspend_2(void)
free_pages
((
unsigned
long
)
pagedir_nosave
,
pagedir_order
);
spin_unlock_irq
(
&
suspend_pagedir_lock
);
mark_swapfiles
(((
swp_entry_t
)
{
0
}),
MARK_SWAP_RESUME
);
PRINTK
(
KERN_WARNING
"%sLeaving do_magic_suspend_2...
\n
"
,
name_suspend
);
}
static
void
do_software_suspend
(
void
)
...
...
@@ -786,12 +784,11 @@ static void do_software_suspend(void)
* using normal kernel mechanism.
*/
do_magic
(
0
);
PRINTK
(
"Restarting processes...
\n
"
);
thaw_processes
();
}
software_suspend_enabled
=
1
;
MDELAY
(
1000
);
restore_console
();
restore_console
();
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment