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
ed576c7d
Commit
ed576c7d
authored
Jan 05, 2004
by
Dave Jones
Committed by
Dave Jones
Jan 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] remove unneeded #ifdefs in include/linux/cpufreq.h
parent
f162ed11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
include/linux/cpufreq.h
include/linux/cpufreq.h
+4
-6
No files found.
include/linux/cpufreq.h
View file @
ed576c7d
...
@@ -231,17 +231,18 @@ int cpufreq_update_policy(unsigned int cpu);
...
@@ -231,17 +231,18 @@ int cpufreq_update_policy(unsigned int cpu);
/* the proc_intf.c needs this */
/* the proc_intf.c needs this */
int
cpufreq_parse_governor
(
char
*
str_governor
,
unsigned
int
*
policy
,
struct
cpufreq_governor
**
governor
);
int
cpufreq_parse_governor
(
char
*
str_governor
,
unsigned
int
*
policy
,
struct
cpufreq_governor
**
governor
);
#if defined(CONFIG_CPU_FREQ_GOV_USERSPACE) || defined(CONFIG_CPU_FREQ_GOV_USERSPACE_MODULE)
/*********************************************************************
/*********************************************************************
* CPUFREQ USERSPACE GOVERNOR *
* CPUFREQ USERSPACE GOVERNOR *
*********************************************************************/
*********************************************************************/
int
cpufreq_gov_userspace_init
(
void
);
int
cpufreq_gov_userspace_init
(
void
);
#ifdef CONFIG_CPU_FREQ_24_API
int
cpufreq_setmax
(
unsigned
int
cpu
);
int
cpufreq_setmax
(
unsigned
int
cpu
);
int
cpufreq_set
(
unsigned
int
kHz
,
unsigned
int
cpu
);
int
cpufreq_set
(
unsigned
int
kHz
,
unsigned
int
cpu
);
unsigned
int
cpufreq_get
(
unsigned
int
cpu
);
unsigned
int
cpufreq_get
(
unsigned
int
cpu
);
#ifdef CONFIG_CPU_FREQ_24_API
/* /proc/sys/cpu */
/* /proc/sys/cpu */
enum
{
enum
{
...
@@ -289,8 +290,6 @@ enum {
...
@@ -289,8 +290,6 @@ enum {
#endif
/* CONFIG_CPU_FREQ_24_API */
#endif
/* CONFIG_CPU_FREQ_24_API */
#endif
/* CONFIG_CPU_FREQ_GOV_USERSPACE */
/*********************************************************************
/*********************************************************************
* CPUFREQ DEFAULT GOVERNOR *
* CPUFREQ DEFAULT GOVERNOR *
...
@@ -305,6 +304,7 @@ extern struct cpufreq_governor cpufreq_gov_userspace;
...
@@ -305,6 +304,7 @@ extern struct cpufreq_governor cpufreq_gov_userspace;
#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace
#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace
#endif
#endif
/*********************************************************************
/*********************************************************************
* FREQUENCY TABLE HELPERS *
* FREQUENCY TABLE HELPERS *
*********************************************************************/
*********************************************************************/
...
@@ -318,7 +318,6 @@ struct cpufreq_frequency_table {
...
@@ -318,7 +318,6 @@ struct cpufreq_frequency_table {
* order */
* order */
};
};
#if defined(CONFIG_CPU_FREQ_TABLE) || defined(CONFIG_CPU_FREQ_TABLE_MODULE)
int
cpufreq_frequency_table_cpuinfo
(
struct
cpufreq_policy
*
policy
,
int
cpufreq_frequency_table_cpuinfo
(
struct
cpufreq_policy
*
policy
,
struct
cpufreq_frequency_table
*
table
);
struct
cpufreq_frequency_table
*
table
);
...
@@ -340,5 +339,4 @@ void cpufreq_frequency_table_get_attr(struct cpufreq_frequency_table *table,
...
@@ -340,5 +339,4 @@ void cpufreq_frequency_table_get_attr(struct cpufreq_frequency_table *table,
void
cpufreq_frequency_table_put_attr
(
unsigned
int
cpu
);
void
cpufreq_frequency_table_put_attr
(
unsigned
int
cpu
);
#endif
/* CONFIG_CPU_FREQ_TABLE */
#endif
/* _LINUX_CPUFREQ_H */
#endif
/* _LINUX_CPUFREQ_H */
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