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
82c86a33
Commit
82c86a33
authored
Oct 19, 2003
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/bk/linux-2.6.0
into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0
parents
740ba8b9
e7360c40
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
10 deletions
+58
-10
drivers/acpi/battery.c
drivers/acpi/battery.c
+3
-3
drivers/acpi/ec.c
drivers/acpi/ec.c
+14
-2
drivers/acpi/events/evgpe.c
drivers/acpi/events/evgpe.c
+2
-2
drivers/acpi/utilities/utdelete.c
drivers/acpi/utilities/utdelete.c
+39
-3
No files found.
drivers/acpi/battery.c
View file @
82c86a33
...
...
@@ -360,7 +360,7 @@ acpi_battery_read_info (
ACPI_FUNCTION_TRACE
(
"acpi_battery_read_info"
);
if
(
!
battery
)
if
(
!
battery
||
(
off
!=
0
)
)
goto
end
;
if
(
battery
->
flags
.
present
)
...
...
@@ -459,7 +459,7 @@ acpi_battery_read_state (
ACPI_FUNCTION_TRACE
(
"acpi_battery_read_state"
);
if
(
!
battery
)
if
(
!
battery
||
(
off
!=
0
)
)
goto
end
;
if
(
battery
->
flags
.
present
)
...
...
@@ -543,7 +543,7 @@ acpi_battery_read_alarm (
ACPI_FUNCTION_TRACE
(
"acpi_battery_read_alarm"
);
if
(
!
battery
)
if
(
!
battery
||
(
off
!=
0
)
)
goto
end
;
if
(
!
battery
->
flags
.
present
)
{
...
...
drivers/acpi/ec.c
View file @
82c86a33
...
...
@@ -94,6 +94,13 @@ static struct acpi_ec *ec_ecdt;
/* External interfaces use first EC only, so remember */
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
-------------------------------------------------------------------------- */
...
...
@@ -393,6 +400,9 @@ acpi_ec_gpe_handler (
acpi_disable_gpe
(
NULL
,
ec
->
gpe_bit
,
ACPI_ISR
);
if
(
!
ec_device_init
)
acpi_ec_gpe_query
(
ec
);
/* directly query when device didn't init */
else
status
=
acpi_os_queue_for_execution
(
OSD_PRIORITY_GPE
,
acpi_ec_gpe_query
,
ec
);
}
...
...
@@ -589,6 +599,8 @@ acpi_ec_add (
we now have the *real* EC info, so kill the makeshift one.*/
acpi_evaluate_integer
(
ec
->
handle
,
"_UID"
,
NULL
,
&
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_ADR_SPACE_EC
,
&
acpi_ec_space_handler
);
...
...
drivers/acpi/events/evgpe.c
View file @
82c86a33
...
...
@@ -218,7 +218,7 @@ acpi_ev_gpe_detect (
int_status
|=
acpi_ev_gpe_dispatch
(
&
gpe_block
->
event_info
[
gpe_number
],
gpe_number
+
gpe_block
->
register_info
[
gpe_number
].
base_gpe_number
);
j
+
gpe_register_info
->
base_gpe_number
);
}
}
}
...
...
drivers/acpi/utilities/utdelete.c
View file @
82c86a33
...
...
@@ -416,7 +416,7 @@ acpi_ut_update_object_reference (
u32
i
;
union
acpi_generic_state
*
state_list
=
NULL
;
union
acpi_generic_state
*
state
;
union
acpi_operand_object
*
tmp
;
ACPI_FUNCTION_TRACE_PTR
(
"ut_update_object_reference"
,
object
);
...
...
@@ -448,8 +448,16 @@ acpi_ut_update_object_reference (
switch
(
ACPI_GET_OBJECT_TYPE
(
object
))
{
case
ACPI_TYPE_DEVICE
:
acpi_ut_update_ref_count
(
object
->
device
.
system_notify
,
action
);
acpi_ut_update_ref_count
(
object
->
device
.
device_notify
,
action
);
tmp
=
object
->
device
.
system_notify
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
device
.
system_notify
=
NULL
;
acpi_ut_update_ref_count
(
tmp
,
action
);
tmp
=
object
->
device
.
device_notify
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
device
.
device_notify
=
NULL
;
acpi_ut_update_ref_count
(
tmp
,
action
);
break
;
...
...
@@ -470,6 +478,10 @@ acpi_ut_update_object_reference (
if
(
ACPI_FAILURE
(
status
))
{
goto
error_exit
;
}
tmp
=
object
->
package
.
elements
[
i
];
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
package
.
elements
[
i
]
=
NULL
;
}
break
;
...
...
@@ -481,6 +493,10 @@ acpi_ut_update_object_reference (
if
(
ACPI_FAILURE
(
status
))
{
goto
error_exit
;
}
tmp
=
object
->
buffer_field
.
buffer_obj
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
buffer_field
.
buffer_obj
=
NULL
;
break
;
...
...
@@ -491,6 +507,10 @@ acpi_ut_update_object_reference (
if
(
ACPI_FAILURE
(
status
))
{
goto
error_exit
;
}
tmp
=
object
->
field
.
region_obj
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
field
.
region_obj
=
NULL
;
break
;
...
...
@@ -502,11 +522,19 @@ acpi_ut_update_object_reference (
goto
error_exit
;
}
tmp
=
object
->
bank_field
.
bank_obj
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
bank_field
.
bank_obj
=
NULL
;
status
=
acpi_ut_create_update_state_and_push
(
object
->
bank_field
.
region_obj
,
action
,
&
state_list
);
if
(
ACPI_FAILURE
(
status
))
{
goto
error_exit
;
}
tmp
=
object
->
bank_field
.
region_obj
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
bank_field
.
region_obj
=
NULL
;
break
;
...
...
@@ -518,11 +546,19 @@ acpi_ut_update_object_reference (
goto
error_exit
;
}
tmp
=
object
->
index_field
.
index_obj
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
index_field
.
index_obj
=
NULL
;
status
=
acpi_ut_create_update_state_and_push
(
object
->
index_field
.
data_obj
,
action
,
&
state_list
);
if
(
ACPI_FAILURE
(
status
))
{
goto
error_exit
;
}
tmp
=
object
->
index_field
.
data_obj
;
if
(
tmp
&&
(
tmp
->
common
.
reference_count
<=
1
)
&&
action
==
REF_DECREMENT
)
object
->
index_field
.
data_obj
=
NULL
;
break
;
...
...
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