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
bd26e70d
Commit
bd26e70d
authored
Aug 03, 2004
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/bk/linux-2.6.8
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
parents
77e0102e
30e74fea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
Makefile
Makefile
+1
-1
drivers/macintosh/therm_pm72.c
drivers/macintosh/therm_pm72.c
+21
-0
No files found.
Makefile
View file @
bd26e70d
VERSION
=
2
PATCHLEVEL
=
6
SUBLEVEL
=
8
EXTRAVERSION
=
-rc
2
EXTRAVERSION
=
-rc
3
NAME
=
Zonked Quokka
# *DOCUMENTATION*
...
...
drivers/macintosh/therm_pm72.c
View file @
bd26e70d
...
...
@@ -317,6 +317,20 @@ static int fan_write_reg(int reg, const unsigned char *ptr, int nb)
return
nw
;
}
static
int
start_fcu
(
void
)
{
unsigned
char
buf
=
0xff
;
int
rc
;
rc
=
fan_write_reg
(
0xe
,
&
buf
,
1
);
if
(
rc
<
0
)
return
-
EIO
;
rc
=
fan_write_reg
(
0x2e
,
&
buf
,
1
);
if
(
rc
<
0
)
return
-
EIO
;
return
0
;
}
static
int
set_rpm_fan
(
int
fan
,
int
rpm
)
{
unsigned
char
buf
[
2
];
...
...
@@ -1011,6 +1025,12 @@ static int main_control_loop(void *x)
down
(
&
driver_lock
);
if
(
start_fcu
()
<
0
)
{
printk
(
KERN_ERR
"kfand: failed to start FCU
\n
"
);
up
(
&
driver_lock
);
goto
out
;
}
/* Set the PCI fan once for now */
set_pwm_fan
(
SLOTS_FAN_PWM_ID
,
SLOTS_FAN_DEFAULT_PWM
);
...
...
@@ -1057,6 +1077,7 @@ static int main_control_loop(void *x)
schedule_timeout
(
HZ
-
elapsed
);
}
out:
DBG
(
"main_control_loop ended
\n
"
);
ctrl_task
=
0
;
...
...
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