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
529980c8
Commit
529980c8
authored
Sep 08, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq
parents
e3e3679c
52c18fd2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+2
-2
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+10
-10
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
+1
-1
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq.c
+5
-1
No files found.
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
529980c8
...
...
@@ -467,11 +467,11 @@ static void __init longhaul_setup_voltagescaling(void)
}
if
(
vrmrev
==
0
)
{
dprintk
(
"VRM 8.5
\n
"
);
dprintk
(
"VRM 8.5
\n
"
);
memcpy
(
voltage_table
,
vrm85scales
,
sizeof
(
voltage_table
));
numvscales
=
(
voltage_table
[
maxvid
]
-
voltage_table
[
minvid
])
/
25
;
}
else
{
dprintk
(
"Mobile VRM
\n
"
);
dprintk
(
"Mobile VRM
\n
"
);
memcpy
(
voltage_table
,
mobilevrmscales
,
sizeof
(
voltage_table
));
numvscales
=
(
voltage_table
[
maxvid
]
-
voltage_table
[
minvid
])
/
5
;
}
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
View file @
529980c8
...
...
@@ -259,7 +259,7 @@ static int centrino_cpu_init_table(struct cpufreq_policy *policy)
if
(
model
->
op_points
==
NULL
)
{
/* Matched a non-match */
dprintk
(
KERN_INFO
PFX
"no table support for CPU model
\"
%s
\"
:
\n
"
,
dprintk
(
KERN_INFO
PFX
"no table support for CPU model
\"
%s
\"\n
"
,
cpu
->
x86_model_id
);
#ifndef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI
dprintk
(
KERN_INFO
PFX
"try compiling with CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI enabled
\n
"
);
...
...
@@ -402,7 +402,7 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy)
for
(
i
=
0
;
i
<
p
.
state_count
;
i
++
)
{
if
(
p
.
states
[
i
].
control
!=
p
.
states
[
i
].
status
)
{
dprintk
(
"Different control (%
x) and status values (%x
)
\n
"
,
dprintk
(
"Different control (%
llu) and status values (%llu
)
\n
"
,
p
.
states
[
i
].
control
,
p
.
states
[
i
].
status
);
result
=
-
EINVAL
;
goto
err_unreg
;
...
...
@@ -415,7 +415,7 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy)
}
if
(
p
.
states
[
i
].
core_frequency
>
p
.
states
[
0
].
core_frequency
)
{
dprintk
(
"P%u has larger frequency (%
u) than P0 (%
u), skipping
\n
"
,
i
,
dprintk
(
"P%u has larger frequency (%
llu) than P0 (%ll
u), skipping
\n
"
,
i
,
p
.
states
[
i
].
core_frequency
,
p
.
states
[
0
].
core_frequency
);
p
.
states
[
i
].
core_frequency
=
0
;
continue
;
...
...
@@ -498,13 +498,6 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
if
(
cpu
->
x86_vendor
!=
X86_VENDOR_INTEL
||
!
cpu_has
(
cpu
,
X86_FEATURE_EST
))
return
-
ENODEV
;
for
(
i
=
0
;
i
<
N_IDS
;
i
++
)
if
(
centrino_verify_cpu_id
(
cpu
,
&
cpu_ids
[
i
]))
break
;
if
(
i
!=
N_IDS
)
centrino_cpu
[
policy
->
cpu
]
=
&
cpu_ids
[
i
];
if
(
is_const_loops_cpu
(
policy
->
cpu
))
{
centrino_driver
.
flags
|=
CPUFREQ_CONST_LOOPS
;
}
...
...
@@ -513,6 +506,13 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
if
(
policy
->
cpu
!=
0
)
return
-
ENODEV
;
for
(
i
=
0
;
i
<
N_IDS
;
i
++
)
if
(
centrino_verify_cpu_id
(
cpu
,
&
cpu_ids
[
i
]))
break
;
if
(
i
!=
N_IDS
)
centrino_cpu
[
policy
->
cpu
]
=
&
cpu_ids
[
i
];
if
(
!
centrino_cpu
[
policy
->
cpu
])
{
dprintk
(
KERN_INFO
PFX
"found unsupported CPU with "
"Enhanced SpeedStep: send /proc/cpuinfo to "
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
View file @
529980c8
...
...
@@ -99,7 +99,7 @@ static int speedstep_smi_get_freqs (unsigned int *low, unsigned int *high)
u32
function
=
GET_SPEEDSTEP_FREQS
;
if
(
!
(
ist_info
.
event
&
0xFFFF
))
{
dprintk
(
"bug #1422 -- can't read freqs from BIOS
\n
"
,
result
);
dprintk
(
"bug #1422 -- can't read freqs from BIOS
\n
"
);
return
-
ENODEV
;
}
...
...
drivers/cpufreq/cpufreq.c
View file @
529980c8
...
...
@@ -627,7 +627,7 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
ret
=
kobject_register
(
&
policy
->
kobj
);
if
(
ret
)
goto
err_out
;
goto
err_out
_driver_exit
;
/* set up files for this cpu device */
drv_attr
=
cpufreq_driver
->
attr
;
...
...
@@ -673,6 +673,10 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
kobject_unregister
(
&
policy
->
kobj
);
wait_for_completion
(
&
policy
->
kobj_unregister
);
err_out_driver_exit:
if
(
cpufreq_driver
->
exit
)
cpufreq_driver
->
exit
(
policy
);
err_out:
kfree
(
policy
);
...
...
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