Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
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)
if
(
cpu_has
(
c
,
X86_FEATURE_EST
))
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
->
buffer
.
length
=
12
;
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)
if
(
!
value
)
value
=
&
dummy
;
switch
(
width
)
{
case
8
:
*
value
=
0
;
if
(
width
<=
8
)
{
*
(
u8
*
)
value
=
inb
(
port
);
break
;
case
16
:
}
else
if
(
width
<=
16
)
{
*
(
u16
*
)
value
=
inw
(
port
);
break
;
case
32
:
}
else
if
(
width
<=
32
)
{
*
(
u32
*
)
value
=
inl
(
port
);
break
;
default:
}
else
{
BUG
();
}
...
...
@@ -408,17 +405,13 @@ EXPORT_SYMBOL(acpi_os_read_port);
acpi_status
acpi_os_write_port
(
acpi_io_address
port
,
u32
value
,
u32
width
)
{
switch
(
width
)
{
case
8
:
if
(
width
<=
8
)
{
outb
(
value
,
port
);
break
;
case
16
:
}
else
if
(
width
<=
16
)
{
outw
(
value
,
port
);
break
;
case
32
:
}
else
if
(
width
<=
32
)
{
outl
(
value
,
port
);
break
;
default:
}
else
{
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)
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
;
}
...
...
@@ -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.). */
arch_acpi_processor_init_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
);
...
...
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