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
b07f07e0
Commit
b07f07e0
authored
Jan 20, 2010
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ec' into release
parents
361243fd
54070101
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
drivers/acpi/ec.c
drivers/acpi/ec.c
+4
-2
drivers/acpi/sbshc.c
drivers/acpi/sbshc.c
+1
-1
No files found.
drivers/acpi/ec.c
View file @
b07f07e0
...
...
@@ -259,7 +259,6 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec,
clear_bit
(
EC_FLAGS_QUERY_PENDING
,
&
ec
->
flags
);
spin_unlock_irqrestore
(
&
ec
->
curr_lock
,
tmp
);
ret
=
ec_poll
(
ec
);
pr_debug
(
PREFIX
"transaction end
\n
"
);
spin_lock_irqsave
(
&
ec
->
curr_lock
,
tmp
);
ec
->
curr
=
NULL
;
spin_unlock_irqrestore
(
&
ec
->
curr_lock
,
tmp
);
...
...
@@ -316,6 +315,7 @@ static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t)
/* check if we received SCI during transaction */
ec_check_sci_sync
(
ec
,
acpi_ec_read_status
(
ec
));
if
(
test_bit
(
EC_FLAGS_GPE_STORM
,
&
ec
->
flags
))
{
msleep
(
1
);
/* it is safe to enable GPE outside of transaction */
acpi_enable_gpe
(
NULL
,
ec
->
gpe
);
}
else
if
(
t
->
irq_count
>
ACPI_EC_STORM_THRESHOLD
)
{
...
...
@@ -323,6 +323,7 @@ static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t)
"transactions will use polling mode
\n
"
);
set_bit
(
EC_FLAGS_GPE_STORM
,
&
ec
->
flags
);
}
pr_debug
(
PREFIX
"transaction end
\n
"
);
end:
if
(
ec
->
global_lock
)
acpi_release_global_lock
(
glk
);
...
...
@@ -535,7 +536,8 @@ static int acpi_ec_sync_query(struct acpi_ec *ec)
return
-
ENOMEM
;
memcpy
(
copy
,
handler
,
sizeof
(
*
copy
));
pr_debug
(
PREFIX
"push query execution (0x%2x) on queue
\n
"
,
value
);
return
acpi_os_execute
(
OSL_GPE_HANDLER
,
return
acpi_os_execute
((
copy
->
func
)
?
OSL_NOTIFY_HANDLER
:
OSL_GPE_HANDLER
,
acpi_ec_run
,
copy
);
}
}
...
...
drivers/acpi/sbshc.c
View file @
b07f07e0
...
...
@@ -242,7 +242,7 @@ static int smbus_alarm(void *context)
case
ACPI_SBS_CHARGER
:
case
ACPI_SBS_MANAGER
:
case
ACPI_SBS_BATTERY
:
acpi_os_execute
(
OSL_
GPE
_HANDLER
,
acpi_os_execute
(
OSL_
NOTIFY
_HANDLER
,
acpi_smbus_callback
,
hc
);
default:
;
}
...
...
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