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
6b2c676b
Commit
6b2c676b
authored
May 11, 2010
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpuidle: fail to register if !CONFIG_CPU_IDLE
Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
e40152ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/linux/cpuidle.h
include/linux/cpuidle.h
+3
-3
No files found.
include/linux/cpuidle.h
View file @
6b2c676b
...
@@ -137,16 +137,16 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev);
...
@@ -137,16 +137,16 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev);
#else
#else
static
inline
int
cpuidle_register_driver
(
struct
cpuidle_driver
*
drv
)
static
inline
int
cpuidle_register_driver
(
struct
cpuidle_driver
*
drv
)
{
return
0
;
}
{
return
-
ENODEV
;
}
static
inline
void
cpuidle_unregister_driver
(
struct
cpuidle_driver
*
drv
)
{
}
static
inline
void
cpuidle_unregister_driver
(
struct
cpuidle_driver
*
drv
)
{
}
static
inline
int
cpuidle_register_device
(
struct
cpuidle_device
*
dev
)
static
inline
int
cpuidle_register_device
(
struct
cpuidle_device
*
dev
)
{
return
0
;
}
{
return
-
ENODEV
;
}
static
inline
void
cpuidle_unregister_device
(
struct
cpuidle_device
*
dev
)
{
}
static
inline
void
cpuidle_unregister_device
(
struct
cpuidle_device
*
dev
)
{
}
static
inline
void
cpuidle_pause_and_lock
(
void
)
{
}
static
inline
void
cpuidle_pause_and_lock
(
void
)
{
}
static
inline
void
cpuidle_resume_and_unlock
(
void
)
{
}
static
inline
void
cpuidle_resume_and_unlock
(
void
)
{
}
static
inline
int
cpuidle_enable_device
(
struct
cpuidle_device
*
dev
)
static
inline
int
cpuidle_enable_device
(
struct
cpuidle_device
*
dev
)
{
return
0
;
}
{
return
-
ENODEV
;
}
static
inline
void
cpuidle_disable_device
(
struct
cpuidle_device
*
dev
)
{
}
static
inline
void
cpuidle_disable_device
(
struct
cpuidle_device
*
dev
)
{
}
#endif
#endif
...
...
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