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
077a671d
Commit
077a671d
authored
Nov 19, 2013
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-cpuidle'
* pm-cpuidle: intel_idle: Support Intel Atom Processor C2000 Product Family
parents
9a04d08b
fab04b22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
drivers/idle/intel_idle.c
drivers/idle/intel_idle.c
+23
-1
No files found.
drivers/idle/intel_idle.c
View file @
077a671d
/*
* intel_idle.c - native hardware idle loop for modern Intel processors
*
* Copyright (c) 201
0
, Intel Corporation.
* Copyright (c) 201
3
, Intel Corporation.
* Len Brown <len.brown@intel.com>
*
* This program is free software; you can redistribute it and/or modify it
...
...
@@ -329,6 +329,22 @@ static struct cpuidle_state atom_cstates[] __initdata = {
{
.
enter
=
NULL
}
};
static
struct
cpuidle_state
avn_cstates
[
CPUIDLE_STATE_MAX
]
=
{
{
.
name
=
"C1-AVN"
,
.
desc
=
"MWAIT 0x00"
,
.
flags
=
MWAIT2flg
(
0x00
)
|
CPUIDLE_FLAG_TIME_VALID
,
.
exit_latency
=
2
,
.
target_residency
=
2
,
.
enter
=
&
intel_idle
},
{
.
name
=
"C6-AVN"
,
.
desc
=
"MWAIT 0x51"
,
.
flags
=
MWAIT2flg
(
0x58
)
|
CPUIDLE_FLAG_TIME_VALID
|
CPUIDLE_FLAG_TLB_FLUSHED
,
.
exit_latency
=
15
,
.
target_residency
=
45
,
.
enter
=
&
intel_idle
},
};
/**
* intel_idle
...
...
@@ -462,6 +478,11 @@ static const struct idle_cpu idle_cpu_hsw = {
.
disable_promotion_to_c1e
=
true
,
};
static
const
struct
idle_cpu
idle_cpu_avn
=
{
.
state_table
=
avn_cstates
,
.
disable_promotion_to_c1e
=
true
,
};
#define ICPU(model, cpu) \
{ X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long)&cpu }
...
...
@@ -483,6 +504,7 @@ static const struct x86_cpu_id intel_idle_ids[] = {
ICPU
(
0x3f
,
idle_cpu_hsw
),
ICPU
(
0x45
,
idle_cpu_hsw
),
ICPU
(
0x46
,
idle_cpu_hsw
),
ICPU
(
0x4D
,
idle_cpu_avn
),
{}
};
MODULE_DEVICE_TABLE
(
x86cpu
,
intel_idle_ids
);
...
...
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