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
7115c13b
Commit
7115c13b
authored
Aug 29, 2005
by
Tony Luck
Browse files
Options
Browse Files
Download
Plain Diff
Pull acpi-p-state into release branch
parents
7d2e423a
4db8699b
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
562 additions
and
0 deletions
+562
-0
arch/ia64/Kconfig
arch/ia64/Kconfig
+6
-0
arch/ia64/kernel/Makefile
arch/ia64/kernel/Makefile
+1
-0
arch/ia64/kernel/cpufreq/Kconfig
arch/ia64/kernel/cpufreq/Kconfig
+29
-0
arch/ia64/kernel/cpufreq/Makefile
arch/ia64/kernel/cpufreq/Makefile
+1
-0
arch/ia64/kernel/cpufreq/acpi-cpufreq.c
arch/ia64/kernel/cpufreq/acpi-cpufreq.c
+499
-0
include/asm-ia64/acpi.h
include/asm-ia64/acpi.h
+5
-0
include/asm-ia64/pal.h
include/asm-ia64/pal.h
+21
-0
No files found.
arch/ia64/Kconfig
View file @
7115c13b
...
...
@@ -383,6 +383,12 @@ source "drivers/acpi/Kconfig"
endif
if PM
source "arch/ia64/kernel/cpufreq/Kconfig"
endif
endmenu
if !IA64_HP_SIM
...
...
arch/ia64/kernel/Makefile
View file @
7115c13b
...
...
@@ -20,6 +20,7 @@ obj-$(CONFIG_SMP) += smp.o smpboot.o domain.o
obj-$(CONFIG_NUMA)
+=
numa.o
obj-$(CONFIG_PERFMON)
+=
perfmon_default_smpl.o
obj-$(CONFIG_IA64_CYCLONE)
+=
cyclone.o
obj-$(CONFIG_CPU_FREQ)
+=
cpufreq/
obj-$(CONFIG_IA64_MCA_RECOVERY)
+=
mca_recovery.o
obj-$(CONFIG_KPROBES)
+=
kprobes.o jprobes.o
obj-$(CONFIG_IA64_UNCACHED_ALLOCATOR)
+=
uncached.o
...
...
arch/ia64/kernel/cpufreq/Kconfig
0 → 100644
View file @
7115c13b
#
# CPU Frequency scaling
#
menu "CPU Frequency scaling"
source "drivers/cpufreq/Kconfig"
if CPU_FREQ
comment "CPUFreq processor drivers"
config IA64_ACPI_CPUFREQ
tristate "ACPI Processor P-States driver"
select CPU_FREQ_TABLE
depends on ACPI_PROCESSOR
help
This driver adds a CPUFreq driver which utilizes the ACPI
Processor Performance States.
For details, take a look at <file:Documentation/cpu-freq/>.
If in doubt, say N.
endif # CPU_FREQ
endmenu
arch/ia64/kernel/cpufreq/Makefile
0 → 100644
View file @
7115c13b
obj-$(CONFIG_IA64_ACPI_CPUFREQ)
+=
acpi-cpufreq.o
arch/ia64/kernel/cpufreq/acpi-cpufreq.c
0 → 100644
View file @
7115c13b
This diff is collapsed.
Click to expand it.
include/asm-ia64/acpi.h
View file @
7115c13b
...
...
@@ -116,6 +116,11 @@ extern int __initdata nid_to_pxm_map[MAX_NUMNODES];
extern
u16
ia64_acpiid_to_sapicid
[];
/*
* Refer Intel ACPI _PDC support document for bit definitions
*/
#define ACPI_PDC_EST_CAPABILITY_SMP 0x8
#endif
/*__KERNEL__*/
#endif
/*_ASM_ACPI_H*/
include/asm-ia64/pal.h
View file @
7115c13b
...
...
@@ -75,6 +75,8 @@
#define PAL_CACHE_READ 259
/* read tag & data of cacheline for diagnostic testing */
#define PAL_CACHE_WRITE 260
/* write tag & data of cacheline for diagnostic testing */
#define PAL_VM_TR_READ 261
/* read contents of translation register */
#define PAL_GET_PSTATE 262
/* get the current P-state */
#define PAL_SET_PSTATE 263
/* set the P-state */
#ifndef __ASSEMBLY__
...
...
@@ -1111,6 +1113,25 @@ ia64_pal_halt_info (pal_power_mgmt_info_u_t *power_buf)
return
iprv
.
status
;
}
/* Get the current P-state information */
static
inline
s64
ia64_pal_get_pstate
(
u64
*
pstate_index
)
{
struct
ia64_pal_retval
iprv
;
PAL_CALL_STK
(
iprv
,
PAL_GET_PSTATE
,
0
,
0
,
0
);
*
pstate_index
=
iprv
.
v0
;
return
iprv
.
status
;
}
/* Set the P-state */
static
inline
s64
ia64_pal_set_pstate
(
u64
pstate_index
)
{
struct
ia64_pal_retval
iprv
;
PAL_CALL_STK
(
iprv
,
PAL_SET_PSTATE
,
pstate_index
,
0
,
0
);
return
iprv
.
status
;
}
/* Cause the processor to enter LIGHT HALT state, where prefetching and execution are
* suspended, but cache and TLB coherency is maintained.
*/
...
...
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