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
nexedi
linux
Commits
195d8228
Commit
195d8228
authored
Jun 04, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix x86 CPU merge dangling ends
parent
658c7479
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
arch/i386/kernel/cpu/cyrix.c
arch/i386/kernel/cpu/cyrix.c
+3
-1
arch/i386/kernel/cpu/intel.c
arch/i386/kernel/cpu/intel.c
+1
-1
arch/i386/kernel/cpu/proc.c
arch/i386/kernel/cpu/proc.c
+2
-2
No files found.
arch/i386/kernel/cpu/cyrix.c
View file @
195d8228
#include <linux/init.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/pci_ids.h>
#include <asm/dma.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/processor.h>
...
@@ -199,7 +201,7 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
...
@@ -199,7 +201,7 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
* The 5510/5520 companion chips have a funky PIT
* The 5510/5520 companion chips have a funky PIT
* that breaks the TSC synchronizing, so turn it off
* that breaks the TSC synchronizing, so turn it off
*/
*/
if
(
pci_find_device
(
PCI_VENDOR_ID_CYRIX
,
PCI_DEVICE_ID_CYRIX_5510
,
NULL
)
||
if
(
pci_find_device
(
PCI_VENDOR_ID_CYRIX
,
PCI_DEVICE_ID_CYRIX_5510
,
NULL
)
||
pci_find_device
(
PCI_VENDOR_ID_CYRIX
,
PCI_DEVICE_ID_CYRIX_5520
,
NULL
))
pci_find_device
(
PCI_VENDOR_ID_CYRIX
,
PCI_DEVICE_ID_CYRIX_5520
,
NULL
))
clear_bit
(
X86_FEATURE_TSC
,
c
->
x86_capability
);
clear_bit
(
X86_FEATURE_TSC
,
c
->
x86_capability
);
return
;
return
;
...
...
arch/i386/kernel/cpu/intel.c
View file @
195d8228
...
@@ -315,7 +315,7 @@ static void __init init_intel(struct cpuinfo_x86 *c)
...
@@ -315,7 +315,7 @@ static void __init init_intel(struct cpuinfo_x86 *c)
too_many_siblings:
too_many_siblings:
if
(
disable_P4_HT
)
if
(
disable_P4_HT
)
clear_bit
(
X86_FEATURE_HT
,
&
c
->
x86_capability
);
clear_bit
(
X86_FEATURE_HT
,
c
->
x86_capability
);
#endif
#endif
/* Disable the PN if appropriate */
/* Disable the PN if appropriate */
...
...
arch/i386/kernel/cpu/proc.c
View file @
195d8228
...
@@ -66,7 +66,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
...
@@ -66,7 +66,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
else
else
seq_printf
(
m
,
"stepping
\t
: unknown
\n
"
);
seq_printf
(
m
,
"stepping
\t
: unknown
\n
"
);
if
(
test_bit
(
X86_FEATURE_TSC
,
&
c
->
x86_capability
)
)
{
if
(
test_bit
(
X86_FEATURE_TSC
,
c
->
x86_capability
)
)
{
seq_printf
(
m
,
"cpu MHz
\t\t
: %lu.%03lu
\n
"
,
seq_printf
(
m
,
"cpu MHz
\t\t
: %lu.%03lu
\n
"
,
cpu_khz
/
1000
,
(
cpu_khz
%
1000
));
cpu_khz
/
1000
,
(
cpu_khz
%
1000
));
}
}
...
@@ -96,7 +96,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
...
@@ -96,7 +96,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
c
->
wp_works_ok
?
"yes"
:
"no"
);
c
->
wp_works_ok
?
"yes"
:
"no"
);
for
(
i
=
0
;
i
<
32
*
NCAPINTS
;
i
++
)
for
(
i
=
0
;
i
<
32
*
NCAPINTS
;
i
++
)
if
(
test_bit
(
i
,
&
c
->
x86_capability
)
&&
if
(
test_bit
(
i
,
c
->
x86_capability
)
&&
x86_cap_flags
[
i
]
!=
NULL
)
x86_cap_flags
[
i
]
!=
NULL
)
seq_printf
(
m
,
" %s"
,
x86_cap_flags
[
i
]);
seq_printf
(
m
,
" %s"
,
x86_cap_flags
[
i
]);
...
...
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