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
06a5ce0e
Commit
06a5ce0e
authored
Sep 02, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/cpufreq
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
996a2018
22569848
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
33 deletions
+6
-33
arch/arm/mach-sa1100/cpu-sa1100.c
arch/arm/mach-sa1100/cpu-sa1100.c
+1
-3
arch/arm/mach-sa1100/cpu-sa1110.c
arch/arm/mach-sa1100/cpu-sa1110.c
+1
-3
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+4
-4
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq.c
+0
-9
drivers/cpufreq/cpufreq_ondemand.c
drivers/cpufreq/cpufreq_ondemand.c
+0
-7
include/linux/cpufreq.h
include/linux/cpufreq.h
+0
-7
No files found.
arch/arm/mach-sa1100/cpu-sa1100.c
View file @
06a5ce0e
...
...
@@ -230,9 +230,7 @@ static int __init sa1100_cpu_init(struct cpufreq_policy *policy)
}
static
struct
cpufreq_driver
sa1100_driver
=
{
.
flags
=
CPUFREQ_STICKY
|
CPUFREQ_PANIC_OUTOFSYNC
|
CPUFREQ_PANIC_RESUME_OUTOFSYNC
,
.
flags
=
CPUFREQ_STICKY
,
.
verify
=
sa11x0_verify_speed
,
.
target
=
sa1100_target
,
.
get
=
sa11x0_getspeed
,
...
...
arch/arm/mach-sa1100/cpu-sa1110.c
View file @
06a5ce0e
...
...
@@ -329,9 +329,7 @@ static int __init sa1110_cpu_init(struct cpufreq_policy *policy)
}
static
struct
cpufreq_driver
sa1110_driver
=
{
.
flags
=
CPUFREQ_STICKY
|
CPUFREQ_PANIC_OUTOFSYNC
|
CPUFREQ_PANIC_RESUME_OUTOFSYNC
,
.
flags
=
CPUFREQ_STICKY
,
.
verify
=
sa11x0_verify_speed
,
.
target
=
sa1110_target
,
.
get
=
sa11x0_getspeed
,
...
...
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
View file @
06a5ce0e
...
...
@@ -948,13 +948,13 @@ static int __init powernowk8_cpu_init(struct cpufreq_policy *pol)
* an UP version, and is deprecated by AMD.
*/
if
(
pol
->
cpu
!=
0
)
{
printk
(
KERN_
ERR
PFX
"init not cpu 0
\n
"
);
if
(
(
num_online_cpus
()
!=
1
)
||
(
num_possible_cpus
()
!=
1
)
)
{
printk
(
KERN_
INFO
PFX
"MP systems not supported by PSB BIOS structure
\n
"
);
kfree
(
data
);
return
-
ENODEV
;
}
if
(
(
num_online_cpus
()
!=
1
)
||
(
num_possible_cpus
()
!=
1
)
)
{
printk
(
KERN_
INFO
PFX
"MP systems not supported by PSB BIOS structure
\n
"
);
if
(
pol
->
cpu
!=
0
)
{
printk
(
KERN_
ERR
PFX
"init not cpu 0
\n
"
);
kfree
(
data
);
return
-
ENODEV
;
}
...
...
drivers/cpufreq/cpufreq.c
View file @
06a5ce0e
...
...
@@ -157,9 +157,6 @@ void cpufreq_notify_transition(struct cpufreq_freqs *freqs, unsigned int state)
(
likely
(
cpufreq_cpu_data
[
freqs
->
cpu
]
->
cur
))
&&
(
unlikely
(
freqs
->
old
!=
cpufreq_cpu_data
[
freqs
->
cpu
]
->
cur
)))
{
if
(
cpufreq_driver
->
flags
&
CPUFREQ_PANIC_OUTOFSYNC
)
panic
(
"CPU Frequency is out of sync."
);
printk
(
KERN_WARNING
"Warning: CPU frequency is %u, "
"cpufreq assumed %u kHz.
\n
"
,
freqs
->
old
,
cpufreq_cpu_data
[
freqs
->
cpu
]
->
cur
);
freqs
->
old
=
cpufreq_cpu_data
[
freqs
->
cpu
]
->
cur
;
...
...
@@ -603,9 +600,6 @@ static void cpufreq_out_of_sync(unsigned int cpu, unsigned int old_freq, unsigne
{
struct
cpufreq_freqs
freqs
;
if
(
cpufreq_driver
->
flags
&
CPUFREQ_PANIC_OUTOFSYNC
)
panic
(
"CPU Frequency is out of sync."
);
printk
(
KERN_WARNING
"Warning: CPU frequency out of sync: cpufreq and timing "
"core thinks of %u, is %u kHz.
\n
"
,
old_freq
,
new_freq
);
...
...
@@ -696,9 +690,6 @@ static int cpufreq_resume(struct sys_device * sysdev)
if
(
unlikely
(
cur_freq
!=
cpu_policy
->
cur
))
{
struct
cpufreq_freqs
freqs
;
if
(
cpufreq_driver
->
flags
&
CPUFREQ_PANIC_RESUME_OUTOFSYNC
)
panic
(
"CPU Frequency is out of sync."
);
printk
(
KERN_WARNING
"Warning: CPU frequency is %u, "
"cpufreq assumed %u kHz.
\n
"
,
cur_freq
,
cpu_policy
->
cur
);
...
...
drivers/cpufreq/cpufreq_ondemand.c
View file @
06a5ce0e
...
...
@@ -90,11 +90,6 @@ struct dbs_tuners dbs_tuners_ins = {
};
/************************** sysfs interface ************************/
static
ssize_t
show_current_freq
(
struct
cpufreq_policy
*
policy
,
char
*
buf
)
{
return
sprintf
(
buf
,
"%u
\n
"
,
policy
->
cur
);
}
static
ssize_t
show_sampling_rate_max
(
struct
cpufreq_policy
*
policy
,
char
*
buf
)
{
return
sprintf
(
buf
,
"%u
\n
"
,
MAX_SAMPLING_RATE
);
...
...
@@ -111,7 +106,6 @@ static struct freq_attr _name = { \
.show = show_##_name, \
}
define_one_ro
(
current_freq
);
define_one_ro
(
sampling_rate_max
);
define_one_ro
(
sampling_rate_min
);
...
...
@@ -208,7 +202,6 @@ define_one_rw(up_threshold);
define_one_rw
(
down_threshold
);
static
struct
attribute
*
dbs_attributes
[]
=
{
&
current_freq
.
attr
,
&
sampling_rate_max
.
attr
,
&
sampling_rate_min
.
attr
,
&
sampling_rate
.
attr
,
...
...
include/linux/cpufreq.h
View file @
06a5ce0e
...
...
@@ -209,13 +209,6 @@ struct cpufreq_driver {
#define CPUFREQ_CONST_LOOPS 0x02
/* loops_per_jiffy or other kernel
* "constants" aren't affected by
* frequency transitions */
#define CPUFREQ_PANIC_OUTOFSYNC 0x04
/* panic if cpufreq's opinion of
* current frequency differs from
* actual frequency */
#define CPUFREQ_PANIC_RESUME_OUTOFSYNC 0x08
/* panic if cpufreq's opinion of
* current frequency differs from
* actual frequency on resume
* from sleep. */
int
cpufreq_register_driver
(
struct
cpufreq_driver
*
driver_data
);
...
...
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