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
nexedi
linux
Commits
4f4ae0d4
Commit
4f4ae0d4
authored
Feb 07, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'release' and 'ppc-workaround' into release
parents
d870ec72
623b78c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
drivers/acpi/processor_perflib.c
drivers/acpi/processor_perflib.c
+15
-1
No files found.
drivers/acpi/processor_perflib.c
View file @
4f4ae0d4
...
@@ -60,6 +60,11 @@ static DEFINE_MUTEX(performance_mutex);
...
@@ -60,6 +60,11 @@ static DEFINE_MUTEX(performance_mutex);
* policy is adjusted accordingly.
* policy is adjusted accordingly.
*/
*/
static
unsigned
int
ignore_ppc
=
0
;
module_param
(
ignore_ppc
,
uint
,
0644
);
MODULE_PARM_DESC
(
ignore_ppc
,
"If the frequency of your machine gets wrongly"
\
"limited by BIOS, this should help"
);
#define PPC_REGISTERED 1
#define PPC_REGISTERED 1
#define PPC_IN_USE 2
#define PPC_IN_USE 2
...
@@ -72,6 +77,9 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,
...
@@ -72,6 +77,9 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,
struct
acpi_processor
*
pr
;
struct
acpi_processor
*
pr
;
unsigned
int
ppc
=
0
;
unsigned
int
ppc
=
0
;
if
(
ignore_ppc
)
return
0
;
mutex_lock
(
&
performance_mutex
);
mutex_lock
(
&
performance_mutex
);
if
(
event
!=
CPUFREQ_INCOMPATIBLE
)
if
(
event
!=
CPUFREQ_INCOMPATIBLE
)
...
@@ -130,7 +138,13 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)
...
@@ -130,7 +138,13 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)
int
acpi_processor_ppc_has_changed
(
struct
acpi_processor
*
pr
)
int
acpi_processor_ppc_has_changed
(
struct
acpi_processor
*
pr
)
{
{
int
ret
=
acpi_processor_get_platform_limit
(
pr
);
int
ret
;
if
(
ignore_ppc
)
return
0
;
ret
=
acpi_processor_get_platform_limit
(
pr
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
(
ret
);
return
(
ret
);
else
else
...
...
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