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
614a6bbe
Commit
614a6bbe
authored
Nov 20, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull thermal into release branch
parents
c2e46d2e
f79f06ab
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
244 additions
and
82 deletions
+244
-82
arch/x86/kernel/acpi/processor.c
arch/x86/kernel/acpi/processor.c
+3
-0
drivers/acpi/osl.c
drivers/acpi/osl.c
+9
-16
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+6
-6
drivers/acpi/processor_throttling.c
drivers/acpi/processor_throttling.c
+226
-60
No files found.
arch/x86/kernel/acpi/processor.c
View file @
614a6bbe
...
@@ -49,6 +49,9 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
...
@@ -49,6 +49,9 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
if
(
cpu_has
(
c
,
X86_FEATURE_EST
))
if
(
cpu_has
(
c
,
X86_FEATURE_EST
))
buf
[
2
]
|=
ACPI_PDC_EST_CAPABILITY_SWSMP
;
buf
[
2
]
|=
ACPI_PDC_EST_CAPABILITY_SWSMP
;
if
(
cpu_has
(
c
,
X86_FEATURE_ACPI
))
buf
[
2
]
|=
ACPI_PDC_T_FFH
;
obj
->
type
=
ACPI_TYPE_BUFFER
;
obj
->
type
=
ACPI_TYPE_BUFFER
;
obj
->
buffer
.
length
=
12
;
obj
->
buffer
.
length
=
12
;
obj
->
buffer
.
pointer
=
(
u8
*
)
buf
;
obj
->
buffer
.
pointer
=
(
u8
*
)
buf
;
...
...
drivers/acpi/osl.c
View file @
614a6bbe
...
@@ -387,17 +387,14 @@ acpi_status acpi_os_read_port(acpi_io_address port, u32 * value, u32 width)
...
@@ -387,17 +387,14 @@ acpi_status acpi_os_read_port(acpi_io_address port, u32 * value, u32 width)
if
(
!
value
)
if
(
!
value
)
value
=
&
dummy
;
value
=
&
dummy
;
switch
(
width
)
{
*
value
=
0
;
case
8
:
if
(
width
<=
8
)
{
*
(
u8
*
)
value
=
inb
(
port
);
*
(
u8
*
)
value
=
inb
(
port
);
break
;
}
else
if
(
width
<=
16
)
{
case
16
:
*
(
u16
*
)
value
=
inw
(
port
);
*
(
u16
*
)
value
=
inw
(
port
);
break
;
}
else
if
(
width
<=
32
)
{
case
32
:
*
(
u32
*
)
value
=
inl
(
port
);
*
(
u32
*
)
value
=
inl
(
port
);
break
;
}
else
{
default:
BUG
();
BUG
();
}
}
...
@@ -408,17 +405,13 @@ EXPORT_SYMBOL(acpi_os_read_port);
...
@@ -408,17 +405,13 @@ EXPORT_SYMBOL(acpi_os_read_port);
acpi_status
acpi_os_write_port
(
acpi_io_address
port
,
u32
value
,
u32
width
)
acpi_status
acpi_os_write_port
(
acpi_io_address
port
,
u32
value
,
u32
width
)
{
{
switch
(
width
)
{
if
(
width
<=
8
)
{
case
8
:
outb
(
value
,
port
);
outb
(
value
,
port
);
break
;
}
else
if
(
width
<=
16
)
{
case
16
:
outw
(
value
,
port
);
outw
(
value
,
port
);
break
;
}
else
if
(
width
<=
32
)
{
case
32
:
outl
(
value
,
port
);
outl
(
value
,
port
);
break
;
}
else
{
default:
BUG
();
BUG
();
}
}
...
...
drivers/acpi/processor_core.c
View file @
614a6bbe
...
@@ -612,12 +612,6 @@ static int acpi_processor_get_info(struct acpi_processor *pr, unsigned has_uid)
...
@@ -612,12 +612,6 @@ static int acpi_processor_get_info(struct acpi_processor *pr, unsigned has_uid)
request_region
(
pr
->
throttling
.
address
,
6
,
"ACPI CPU throttle"
);
request_region
(
pr
->
throttling
.
address
,
6
,
"ACPI CPU throttle"
);
}
}
#ifdef CONFIG_CPU_FREQ
acpi_processor_ppc_has_changed
(
pr
);
#endif
acpi_processor_get_throttling_info
(
pr
);
acpi_processor_get_limit_info
(
pr
);
return
0
;
return
0
;
}
}
...
@@ -665,6 +659,12 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
...
@@ -665,6 +659,12 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
/* _PDC call should be done before doing anything else (if reqd.). */
/* _PDC call should be done before doing anything else (if reqd.). */
arch_acpi_processor_init_pdc
(
pr
);
arch_acpi_processor_init_pdc
(
pr
);
acpi_processor_set_pdc
(
pr
);
acpi_processor_set_pdc
(
pr
);
#ifdef CONFIG_CPU_FREQ
acpi_processor_ppc_has_changed
(
pr
);
#endif
acpi_processor_get_throttling_info
(
pr
);
acpi_processor_get_limit_info
(
pr
);
acpi_processor_power_init
(
pr
,
device
);
acpi_processor_power_init
(
pr
,
device
);
...
...
drivers/acpi/processor_throttling.c
View file @
614a6bbe
This diff is collapsed.
Click to expand it.
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