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
8976b6fd
Commit
8976b6fd
authored
Feb 07, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'release' and 'throttling-domains' into release
parents
52b097ff
3391a76f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
357 additions
and
7 deletions
+357
-7
arch/ia64/kernel/acpi-processor.c
arch/ia64/kernel/acpi-processor.c
+6
-0
arch/x86/kernel/acpi/processor.c
arch/x86/kernel/acpi/processor.c
+6
-0
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+2
-0
drivers/acpi/processor_throttling.c
drivers/acpi/processor_throttling.c
+340
-6
include/acpi/processor.h
include/acpi/processor.h
+3
-1
No files found.
arch/ia64/kernel/acpi-processor.c
View file @
8976b6fd
...
...
@@ -45,6 +45,12 @@ static void init_intel_pdc(struct acpi_processor *pr)
buf
[
0
]
=
ACPI_PDC_REVISION_ID
;
buf
[
1
]
=
1
;
buf
[
2
]
=
ACPI_PDC_EST_CAPABILITY_SMP
;
/*
* The default of PDC_SMP_T_SWCOORD bit is set for IA64 cpu so
* that OSPM is capable of native ACPI throttling software
* coordination using BIOS supplied _TSD info.
*/
buf
[
2
]
|=
ACPI_PDC_SMP_T_SWCOORD
;
obj
->
type
=
ACPI_TYPE_BUFFER
;
obj
->
buffer
.
length
=
12
;
...
...
arch/x86/kernel/acpi/processor.c
View file @
8976b6fd
...
...
@@ -46,6 +46,12 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
buf
[
1
]
=
1
;
buf
[
2
]
=
ACPI_PDC_C_CAPABILITY_SMP
;
/*
* The default of PDC_SMP_T_SWCOORD bit is set for intel x86 cpu so
* that OSPM is capable of native ACPI throttling software
* coordination using BIOS supplied _TSD info.
*/
buf
[
2
]
|=
ACPI_PDC_SMP_T_SWCOORD
;
if
(
cpu_has
(
c
,
X86_FEATURE_EST
))
buf
[
2
]
|=
ACPI_PDC_EST_CAPABILITY_SWSMP
;
...
...
drivers/acpi/processor_core.c
View file @
8976b6fd
...
...
@@ -1091,6 +1091,8 @@ static int __init acpi_processor_init(void)
acpi_processor_ppc_init
();
acpi_processor_throttling_init
();
return
0
;
out_cpuidle:
...
...
drivers/acpi/processor_throttling.c
View file @
8976b6fd
This diff is collapsed.
Click to expand it.
include/acpi/processor.h
View file @
8976b6fd
...
...
@@ -177,6 +177,8 @@ struct acpi_processor_throttling {
u32
address
;
u8
duty_offset
;
u8
duty_width
;
u8
tsd_valid_flag
;
unsigned
int
shared_type
;
struct
acpi_processor_tx
states
[
ACPI_PROCESSOR_MAX_THROTTLING
];
};
...
...
@@ -317,7 +319,7 @@ static inline int acpi_processor_ppc_has_changed(struct acpi_processor *pr)
int
acpi_processor_get_throttling_info
(
struct
acpi_processor
*
pr
);
extern
int
acpi_processor_set_throttling
(
struct
acpi_processor
*
pr
,
int
state
);
extern
struct
file_operations
acpi_processor_throttling_fops
;
extern
void
acpi_processor_throttling_init
(
void
);
/* in processor_idle.c */
int
acpi_processor_power_init
(
struct
acpi_processor
*
pr
,
struct
acpi_device
*
device
);
...
...
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