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
04529916
Commit
04529916
authored
Aug 03, 2004
by
Dave Jones
Committed by
Dave Jones
Aug 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Whitespace/CodingStyle fixes for speedstep-ich
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
6c7b6c0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
45 deletions
+41
-45
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
+41
-45
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
View file @
04529916
...
@@ -82,8 +82,7 @@ static void speedstep_set_state (unsigned int state)
...
@@ -82,8 +82,7 @@ static void speedstep_set_state (unsigned int state)
/* get PMBASE */
/* get PMBASE */
pci_read_config_dword
(
speedstep_chipset_dev
,
0x40
,
&
pmbase
);
pci_read_config_dword
(
speedstep_chipset_dev
,
0x40
,
&
pmbase
);
if
(
!
(
pmbase
&
0x01
))
if
(
!
(
pmbase
&
0x01
))
{
{
printk
(
KERN_ERR
"cpufreq: could not find speedstep register
\n
"
);
printk
(
KERN_ERR
"cpufreq: could not find speedstep register
\n
"
);
return
;
return
;
}
}
...
@@ -151,13 +150,11 @@ static int speedstep_activate (void)
...
@@ -151,13 +150,11 @@ static int speedstep_activate (void)
if
(
!
speedstep_chipset_dev
)
if
(
!
speedstep_chipset_dev
)
return
-
EINVAL
;
return
-
EINVAL
;
pci_read_config_word
(
speedstep_chipset_dev
,
pci_read_config_word
(
speedstep_chipset_dev
,
0x00A0
,
&
value
);
0x00A0
,
&
value
);
if
(
!
(
value
&
0x08
))
{
if
(
!
(
value
&
0x08
))
{
value
|=
0x08
;
value
|=
0x08
;
dprintk
(
KERN_DEBUG
"cpufreq: activating SpeedStep (TM) registers
\n
"
);
dprintk
(
KERN_DEBUG
"cpufreq: activating SpeedStep (TM) registers
\n
"
);
pci_write_config_word
(
speedstep_chipset_dev
,
pci_write_config_word
(
speedstep_chipset_dev
,
0x00A0
,
value
);
0x00A0
,
value
);
}
}
return
0
;
return
0
;
...
@@ -342,9 +339,8 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
...
@@ -342,9 +339,8 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
&
speedstep_freqs
[
SPEEDSTEP_HIGH
].
frequency
,
&
speedstep_freqs
[
SPEEDSTEP_HIGH
].
frequency
,
&
speedstep_set_state
);
&
speedstep_set_state
);
set_cpus_allowed
(
current
,
cpus_allowed
);
set_cpus_allowed
(
current
,
cpus_allowed
);
if
(
result
)
{
if
(
result
)
return
result
;
return
result
;
}
/* get current speed setting */
/* get current speed setting */
speed
=
speedstep_get
(
policy
->
cpu
);
speed
=
speedstep_get
(
policy
->
cpu
);
...
...
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