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
4895ae6f
Commit
4895ae6f
authored
Oct 25, 2010
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ec-param' into release
parents
8c654bb8
7a18e96d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/acpi/ec.c
drivers/acpi/ec.c
+7
-2
No files found.
drivers/acpi/ec.c
View file @
4895ae6f
...
...
@@ -83,6 +83,11 @@ enum {
EC_FLAGS_BLOCKED
,
/* Transactions are blocked */
};
/* ec.c is compiled in acpi namespace so this shows up as acpi.ec_delay param */
static
unsigned
int
ec_delay
__read_mostly
=
ACPI_EC_DELAY
;
module_param
(
ec_delay
,
uint
,
0644
);
MODULE_PARM_DESC
(
ec_delay
,
"Timeout(ms) waited until an EC command completes"
);
/* If we find an EC via the ECDT, we need to keep a ptr to its context */
/* External interfaces use first EC only, so remember */
typedef
int
(
*
acpi_ec_query_func
)
(
void
*
data
);
...
...
@@ -210,7 +215,7 @@ static int ec_poll(struct acpi_ec *ec)
int
repeat
=
2
;
/* number of command restarts */
while
(
repeat
--
)
{
unsigned
long
delay
=
jiffies
+
msecs_to_jiffies
(
ACPI_EC_DELAY
);
msecs_to_jiffies
(
ec_delay
);
do
{
/* don't sleep with disabled interrupts */
if
(
EC_FLAGS_MSI
||
irqs_disabled
())
{
...
...
@@ -265,7 +270,7 @@ static int ec_check_ibf0(struct acpi_ec *ec)
static
int
ec_wait_ibf0
(
struct
acpi_ec
*
ec
)
{
unsigned
long
delay
=
jiffies
+
msecs_to_jiffies
(
ACPI_EC_DELAY
);
unsigned
long
delay
=
jiffies
+
msecs_to_jiffies
(
ec_delay
);
/* interrupt wait manually if GPE mode is not active */
while
(
time_before
(
jiffies
,
delay
))
if
(
wait_event_timeout
(
ec
->
wait
,
ec_check_ibf0
(
ec
),
...
...
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