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
3cc636c2
Commit
3cc636c2
authored
Nov 04, 2002
by
Alan Cox
Committed by
Dave Jones
Nov 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] use the PIT bug workarounds rather than killing TSC
parent
e4950232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
arch/i386/kernel/cpu/cyrix.c
arch/i386/kernel/cpu/cyrix.c
+11
-13
No files found.
arch/i386/kernel/cpu/cyrix.c
View file @
3cc636c2
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include <asm/dma.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/processor.h>
#include <asm/timer.h>
#include "cpu.h"
#include "cpu.h"
...
@@ -170,7 +171,7 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
...
@@ -170,7 +171,7 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
c
->
coma_bug
=
1
;
c
->
coma_bug
=
1
;
break
;
break
;
case
4
:
/* MediaGX/GXm */
case
4
:
/* MediaGX/GXm
or Geode GXM/GXLV/GX1
*/
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
/* It isn't really a PCI quirk directly, but the cure is the
/* It isn't really a PCI quirk directly, but the cure is the
same. The MediaGX has deep magic SMM stuff that handles the
same. The MediaGX has deep magic SMM stuff that handles the
...
@@ -188,29 +189,26 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
...
@@ -188,29 +189,26 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
isa_dma_bridge_buggy
=
2
;
isa_dma_bridge_buggy
=
2
;
#endif
#endif
c
->
x86_cache_size
=
16
;
/* Yep 16K integrated cache thats it */
c
->
x86_cache_size
=
16
;
/* Yep 16K integrated cache thats it */
/*
* The 5510/5520 companion chips have a funky PIT.
*/
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
))
pit_latch_buggy
=
1
;
/* GXm supports extended cpuid levels 'ala' AMD */
/* GXm supports extended cpuid levels 'ala' AMD */
if
(
c
->
cpuid_level
==
2
)
{
if
(
c
->
cpuid_level
==
2
)
{
/* Enable
Natsemi MMX extensions
*/
/* Enable
cxMMX extensions (GX1 Datasheet 54)
*/
setCx86
(
CX86_CCR7
,
getCx86
(
CX86_CCR7
)
|
1
);
setCx86
(
CX86_CCR7
,
getCx86
(
CX86_CCR7
)
|
1
);
get_model_name
(
c
);
/* get CPU marketing name */
get_model_name
(
c
);
/* get CPU marketing name */
/*
* The 5510/5520 companion chips have a funky PIT
* that breaks the TSC synchronizing, so turn it off
*/
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
))
clear_bit
(
X86_FEATURE_TSC
,
c
->
x86_capability
);
return
;
return
;
}
}
else
{
/* MediaGX */
else
{
/* MediaGX */
Cx86_cb
[
2
]
=
(
dir0_lsn
&
1
)
?
'3'
:
'4'
;
Cx86_cb
[
2
]
=
(
dir0_lsn
&
1
)
?
'3'
:
'4'
;
p
=
Cx86_cb
+
2
;
p
=
Cx86_cb
+
2
;
c
->
x86_model
=
(
dir1
&
0x20
)
?
1
:
2
;
c
->
x86_model
=
(
dir1
&
0x20
)
?
1
:
2
;
#ifndef CONFIG_CS5520
clear_bit
(
X86_FEATURE_TSC
,
c
->
x86_capability
);
#endif
}
}
break
;
break
;
...
...
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