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
a7fa6cb1
Commit
a7fa6cb1
authored
Oct 28, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-acpi.bkbits.net/linux-acpi-release-2.6.0
into home.osdl.org:/home/torvalds/v2.5/linux
parents
dad1f579
30cd37d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
drivers/acpi/dispatcher/dsopcode.c
drivers/acpi/dispatcher/dsopcode.c
+3
-5
drivers/acpi/ec.c
drivers/acpi/ec.c
+2
-14
No files found.
drivers/acpi/dispatcher/dsopcode.c
View file @
a7fa6cb1
...
@@ -514,16 +514,14 @@ acpi_ds_init_buffer_field (
...
@@ -514,16 +514,14 @@ acpi_ds_init_buffer_field (
goto
cleanup
;
goto
cleanup
;
}
}
/* Entire field must fit within the current length of the buffer */
/* Entire field must fit within the current length of the buffer */
if
((
bit_offset
+
bit_count
)
>
if
((
bit_offset
+
bit_count
)
>
(
8
*
(
u32
)
buffer_desc
->
buffer
.
length
))
{
(
8
*
(
u32
)
buffer_desc
->
buffer
.
length
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"Field [%4.4s] size %d exceeds Buffer [%4.4s] size %d (bits)
\n
"
,
"Field size %d exceeds Buffer size %d (bits)
\n
"
,
((
struct
acpi_namespace_node
*
)
result_desc
)
->
name
.
ascii
,
bit_offset
+
bit_count
,
8
*
(
u32
)
buffer_desc
->
buffer
.
length
));
bit_offset
+
bit_count
,
buffer_desc
->
buffer
.
node
->
name
.
ascii
,
8
*
(
u32
)
buffer_desc
->
buffer
.
length
));
status
=
AE_AML_BUFFER_LIMIT
;
status
=
AE_AML_BUFFER_LIMIT
;
goto
cleanup
;
goto
cleanup
;
}
}
...
...
drivers/acpi/ec.c
View file @
a7fa6cb1
...
@@ -94,13 +94,6 @@ static struct acpi_ec *ec_ecdt;
...
@@ -94,13 +94,6 @@ static struct acpi_ec *ec_ecdt;
/* External interfaces use first EC only, so remember */
/* External interfaces use first EC only, so remember */
static
struct
acpi_device
*
first_ec
;
static
struct
acpi_device
*
first_ec
;
/*
* We use kernel thread to handle ec's gpe query, so the query may defer.
* The query need a context, which can be freed when we replace ec_ecdt
* with EC device. So defered query may have a wrong context.
* We use an indication to avoid it
*/
static
int
ec_device_init
=
0
;
/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
Transaction Management
Transaction Management
-------------------------------------------------------------------------- */
-------------------------------------------------------------------------- */
...
@@ -400,11 +393,8 @@ acpi_ec_gpe_handler (
...
@@ -400,11 +393,8 @@ acpi_ec_gpe_handler (
acpi_disable_gpe
(
NULL
,
ec
->
gpe_bit
,
ACPI_ISR
);
acpi_disable_gpe
(
NULL
,
ec
->
gpe_bit
,
ACPI_ISR
);
if
(
!
ec_device_init
)
status
=
acpi_os_queue_for_execution
(
OSD_PRIORITY_GPE
,
acpi_ec_gpe_query
(
ec
);
/* directly query when device didn't init */
acpi_ec_gpe_query
,
ec
);
else
status
=
acpi_os_queue_for_execution
(
OSD_PRIORITY_GPE
,
acpi_ec_gpe_query
,
ec
);
}
}
/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
...
@@ -599,8 +589,6 @@ acpi_ec_add (
...
@@ -599,8 +589,6 @@ acpi_ec_add (
we now have the *real* EC info, so kill the makeshift one.*/
we now have the *real* EC info, so kill the makeshift one.*/
acpi_evaluate_integer
(
ec
->
handle
,
"_UID"
,
NULL
,
&
uid
);
acpi_evaluate_integer
(
ec
->
handle
,
"_UID"
,
NULL
,
&
uid
);
if
(
ec_ecdt
&&
ec_ecdt
->
uid
==
uid
)
{
if
(
ec_ecdt
&&
ec_ecdt
->
uid
==
uid
)
{
acpi_disable_gpe
(
NULL
,
ec_ecdt
->
gpe_bit
,
ACPI_NOT_ISR
);
ec_device_init
=
1
;
acpi_remove_address_space_handler
(
ACPI_ROOT_OBJECT
,
acpi_remove_address_space_handler
(
ACPI_ROOT_OBJECT
,
ACPI_ADR_SPACE_EC
,
&
acpi_ec_space_handler
);
ACPI_ADR_SPACE_EC
,
&
acpi_ec_space_handler
);
...
...
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