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
00b0ac82
Commit
00b0ac82
authored
Oct 17, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Add printk levels
parent
96289687
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
arch/i386/kernel/microcode.c
arch/i386/kernel/microcode.c
+2
-2
arch/i386/mm/init.c
arch/i386/mm/init.c
+3
-3
arch/i386/pci/i386.c
arch/i386/pci/i386.c
+1
-1
No files found.
arch/i386/kernel/microcode.c
View file @
00b0ac82
...
@@ -260,7 +260,7 @@ static void do_update_one(void *unused)
...
@@ -260,7 +260,7 @@ static void do_update_one(void *unused)
if
(
microcode
[
i
].
rev
<
rev
)
{
if
(
microcode
[
i
].
rev
<
rev
)
{
spin_unlock_irqrestore
(
&
microcode_update_lock
,
flags
);
spin_unlock_irqrestore
(
&
microcode_update_lock
,
flags
);
printk
(
KERN_
ERR
printk
(
KERN_
INFO
"microcode: CPU%d not 'upgrading' to earlier revision"
"microcode: CPU%d not 'upgrading' to earlier revision"
" %d (current=%d)
\n
"
,
cpu_num
,
microcode
[
i
].
rev
,
rev
);
" %d (current=%d)
\n
"
,
cpu_num
,
microcode
[
i
].
rev
,
rev
);
return
;
return
;
...
@@ -268,7 +268,7 @@ static void do_update_one(void *unused)
...
@@ -268,7 +268,7 @@ static void do_update_one(void *unused)
/* notify the caller of success on this cpu */
/* notify the caller of success on this cpu */
req
->
err
=
0
;
req
->
err
=
0
;
spin_unlock_irqrestore
(
&
microcode_update_lock
,
flags
);
spin_unlock_irqrestore
(
&
microcode_update_lock
,
flags
);
printk
(
KERN_
ERR
printk
(
KERN_
INFO
"microcode: CPU%d already at revision"
"microcode: CPU%d already at revision"
" %d (current=%d)
\n
"
,
cpu_num
,
microcode
[
i
].
rev
,
rev
);
" %d (current=%d)
\n
"
,
cpu_num
,
microcode
[
i
].
rev
,
rev
);
return
;
return
;
...
...
arch/i386/mm/init.c
View file @
00b0ac82
...
@@ -482,7 +482,7 @@ void __init mem_init(void)
...
@@ -482,7 +482,7 @@ void __init mem_init(void)
datasize
=
(
unsigned
long
)
&
_edata
-
(
unsigned
long
)
&
_etext
;
datasize
=
(
unsigned
long
)
&
_edata
-
(
unsigned
long
)
&
_etext
;
initsize
=
(
unsigned
long
)
&
__init_end
-
(
unsigned
long
)
&
__init_begin
;
initsize
=
(
unsigned
long
)
&
__init_end
-
(
unsigned
long
)
&
__init_begin
;
printk
(
"Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init, %ldk highmem)
\n
"
,
printk
(
KERN_INFO
"Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init, %ldk highmem)
\n
"
,
(
unsigned
long
)
nr_free_pages
()
<<
(
PAGE_SHIFT
-
10
),
(
unsigned
long
)
nr_free_pages
()
<<
(
PAGE_SHIFT
-
10
),
num_physpages
<<
(
PAGE_SHIFT
-
10
),
num_physpages
<<
(
PAGE_SHIFT
-
10
),
codesize
>>
10
,
codesize
>>
10
,
...
@@ -584,14 +584,14 @@ void free_initmem(void)
...
@@ -584,14 +584,14 @@ void free_initmem(void)
free_page
(
addr
);
free_page
(
addr
);
totalram_pages
++
;
totalram_pages
++
;
}
}
printk
(
"Freeing unused kernel memory: %dk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
printk
(
KERN_INFO
"Freeing unused kernel memory: %dk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
}
}
#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
void
free_initrd_mem
(
unsigned
long
start
,
unsigned
long
end
)
void
free_initrd_mem
(
unsigned
long
start
,
unsigned
long
end
)
{
{
if
(
start
<
end
)
if
(
start
<
end
)
printk
(
"Freeing initrd memory: %ldk freed
\n
"
,
(
end
-
start
)
>>
10
);
printk
(
KERN_INFO
"Freeing initrd memory: %ldk freed
\n
"
,
(
end
-
start
)
>>
10
);
for
(;
start
<
end
;
start
+=
PAGE_SIZE
)
{
for
(;
start
<
end
;
start
+=
PAGE_SIZE
)
{
ClearPageReserved
(
virt_to_page
(
start
));
ClearPageReserved
(
virt_to_page
(
start
));
set_page_count
(
virt_to_page
(
start
),
1
);
set_page_count
(
virt_to_page
(
start
),
1
);
...
...
arch/i386/pci/i386.c
View file @
00b0ac82
...
@@ -291,7 +291,7 @@ void pcibios_set_master(struct pci_dev *dev)
...
@@ -291,7 +291,7 @@ void pcibios_set_master(struct pci_dev *dev)
lat
=
pcibios_max_latency
;
lat
=
pcibios_max_latency
;
else
else
return
;
return
;
printk
(
"PCI: Setting latency timer of device %s to %d
\n
"
,
dev
->
slot_name
,
lat
);
printk
(
KERN_DEBUG
"PCI: Setting latency timer of device %s to %d
\n
"
,
dev
->
slot_name
,
lat
);
pci_write_config_byte
(
dev
,
PCI_LATENCY_TIMER
,
lat
);
pci_write_config_byte
(
dev
,
PCI_LATENCY_TIMER
,
lat
);
}
}
...
...
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