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
5768f143
Commit
5768f143
authored
May 25, 2004
by
Dave Jones
Committed by
Dave Jones
May 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Make longhaul debug a module option.
parent
78b17ed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+14
-12
No files found.
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
5768f143
...
...
@@ -31,25 +31,25 @@
#include "longhaul.h"
#define DEBUG
#ifdef DEBUG
#define dprintk(msg...) printk(msg)
#else
#define dprintk(msg...) do { } while(0)
#endif
#define PFX "longhaul: "
static
unsigned
int
numscales
=
16
,
numvscales
;
static
unsigned
int
fsb
;
static
int
minvid
,
maxvid
;
static
int
can_scale_voltage
;
static
int
vrmrev
;
/* Module parameters */
static
int
dont_scale_voltage
;
static
unsigned
int
fsb
;
static
int
debug
;
static
int
debug
;
static
void
dprintk
(
const
char
*
msg
,
...)
{
if
(
debug
==
1
)
printk
(
msg
);
}
#define __hlt() __asm__ __volatile__("hlt": : :"memory")
...
...
@@ -119,8 +119,7 @@ static void longhaul_setstate (unsigned int clock_ratio_index)
cpufreq_notify_transition
(
&
freqs
,
CPUFREQ_PRECHANGE
);
// dprintk (KERN_INFO PFX "FSB:%d Mult:%d.%dx\n", fsb,
// mult/10, mult%10);
dprintk
(
KERN_INFO
PFX
"FSB:%d Mult:%d.%dx
\n
"
,
fsb
,
mult
/
10
,
mult
%
10
);
switch
(
longhaul_version
)
{
case
1
:
...
...
@@ -582,6 +581,9 @@ static void __exit longhaul_exit (void)
module_param
(
dont_scale_voltage
,
int
,
0644
);
MODULE_PARM_DESC
(
dont_scale_voltage
,
"Don't scale voltage of processor"
);
module_param
(
debug
,
int
,
0644
);
MODULE_PARM_DESC
(
debug
,
"Dump debugging information."
);
MODULE_AUTHOR
(
"Dave Jones <davej@codemonkey.org.uk>"
);
MODULE_DESCRIPTION
(
"Longhaul driver for VIA Cyrix processors."
);
MODULE_LICENSE
(
"GPL"
);
...
...
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