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
d4eb4155
Commit
d4eb4155
authored
Nov 10, 2002
by
Andy Grover
Browse files
Options
Browse Files
Download
Plain Diff
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi
parents
d9bfacba
ea82155a
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
81 additions
and
63 deletions
+81
-63
drivers/acpi/bus.c
drivers/acpi/bus.c
+1
-0
drivers/acpi/dispatcher/dsmethod.c
drivers/acpi/dispatcher/dsmethod.c
+2
-2
drivers/acpi/dispatcher/dswstate.c
drivers/acpi/dispatcher/dswstate.c
+3
-3
drivers/acpi/events/evmisc.c
drivers/acpi/events/evmisc.c
+2
-2
drivers/acpi/events/evxface.c
drivers/acpi/events/evxface.c
+2
-2
drivers/acpi/executer/exsystem.c
drivers/acpi/executer/exsystem.c
+5
-5
drivers/acpi/executer/exutils.c
drivers/acpi/executer/exutils.c
+2
-2
drivers/acpi/include/acevents.h
drivers/acpi/include/acevents.h
+2
-2
drivers/acpi/include/acinterp.h
drivers/acpi/include/acinterp.h
+2
-2
drivers/acpi/include/aclocal.h
drivers/acpi/include/aclocal.h
+2
-2
drivers/acpi/include/acpiosxf.h
drivers/acpi/include/acpiosxf.h
+1
-1
drivers/acpi/include/acpixf.h
drivers/acpi/include/acpixf.h
+1
-1
drivers/acpi/namespace/nsobject.c
drivers/acpi/namespace/nsobject.c
+25
-15
drivers/acpi/namespace/nsxfeval.c
drivers/acpi/namespace/nsxfeval.c
+12
-7
drivers/acpi/osl.c
drivers/acpi/osl.c
+2
-2
drivers/acpi/scan.c
drivers/acpi/scan.c
+2
-0
drivers/acpi/tables/tbconvrt.c
drivers/acpi/tables/tbconvrt.c
+13
-13
drivers/acpi/utilities/utmisc.c
drivers/acpi/utilities/utmisc.c
+2
-2
No files found.
drivers/acpi/bus.c
View file @
d4eb4155
...
...
@@ -27,6 +27,7 @@
#include <linux/list.h>
#include <linux/sched.h>
#include <linux/pm.h>
#include <linux/device.h>
#include <linux/proc_fs.h>
#ifdef CONFIG_X86
#include <asm/mpspec.h>
...
...
drivers/acpi/dispatcher/dsmethod.c
View file @
d4eb4155
/******************************************************************************
*
* Module Name: dsmethod - Parser/Interpreter interface - control method parsing
* $Revision: 8
8
$
* $Revision: 8
9
$
*
*****************************************************************************/
...
...
@@ -216,7 +216,7 @@ acpi_ds_begin_method_execution (
* interpreter if we block
*/
status
=
acpi_ex_system_wait_semaphore
(
obj_desc
->
method
.
semaphore
,
WAIT_FOREVER
);
ACPI_
WAIT_FOREVER
);
}
/*
...
...
drivers/acpi/dispatcher/dswstate.c
View file @
d4eb4155
/******************************************************************************
*
* Module Name: dswstate - Dispatcher parse tree walk management routines
* $Revision:
69
$
* $Revision:
70
$
*
*****************************************************************************/
...
...
@@ -345,7 +345,7 @@ acpi_ds_result_push (
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION:
Push an object onto the Walk_state result stack.
*
******************************************************************************/
...
...
@@ -381,7 +381,7 @@ acpi_ds_result_stack_push (
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION:
Pop an object off of the Walk_state result stack.
*
******************************************************************************/
...
...
drivers/acpi/events/evmisc.c
View file @
d4eb4155
/******************************************************************************
*
* Module Name: evmisc - Miscellaneous event manager support functions
* $Revision: 5
7
$
* $Revision: 5
8
$
*
*****************************************************************************/
...
...
@@ -433,7 +433,7 @@ acpi_ev_init_global_lock_handler (void)
acpi_status
acpi_ev_acquire_global_lock
(
u
32
timeout
)
u
16
timeout
)
{
acpi_status
status
=
AE_OK
;
u8
acquired
=
FALSE
;
...
...
drivers/acpi/events/evxface.c
View file @
d4eb4155
/******************************************************************************
*
* Module Name: evxface - External interfaces for ACPI events
* $Revision: 13
1
$
* $Revision: 13
2
$
*
*****************************************************************************/
...
...
@@ -612,7 +612,7 @@ acpi_remove_gpe_handler (
acpi_status
acpi_acquire_global_lock
(
u
32
timeout
,
u
16
timeout
,
u32
*
handle
)
{
acpi_status
status
;
...
...
drivers/acpi/executer/exsystem.c
View file @
d4eb4155
...
...
@@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: exsystem - Interface to OS services
* $Revision: 7
3
$
* $Revision: 7
4
$
*
*****************************************************************************/
...
...
@@ -51,7 +51,7 @@
acpi_status
acpi_ex_system_wait_semaphore
(
acpi_handle
semaphore
,
u
32
timeout
)
u
16
timeout
)
{
acpi_status
status
;
acpi_status
status2
;
...
...
@@ -201,12 +201,12 @@ acpi_ex_system_acquire_mutex (
* Support for the _GL_ Mutex object -- go get the global lock
*/
if
(
obj_desc
->
mutex
.
semaphore
==
acpi_gbl_global_lock_semaphore
)
{
status
=
acpi_ev_acquire_global_lock
((
u
32
)
time_desc
->
integer
.
value
);
status
=
acpi_ev_acquire_global_lock
((
u
16
)
time_desc
->
integer
.
value
);
return_ACPI_STATUS
(
status
);
}
status
=
acpi_ex_system_wait_semaphore
(
obj_desc
->
mutex
.
semaphore
,
(
u
32
)
time_desc
->
integer
.
value
);
(
u
16
)
time_desc
->
integer
.
value
);
return_ACPI_STATUS
(
status
);
}
...
...
@@ -312,7 +312,7 @@ acpi_ex_system_wait_event (
if
(
obj_desc
)
{
status
=
acpi_ex_system_wait_semaphore
(
obj_desc
->
event
.
semaphore
,
(
u
32
)
time_desc
->
integer
.
value
);
(
u
16
)
time_desc
->
integer
.
value
);
}
return_ACPI_STATUS
(
status
);
...
...
drivers/acpi/executer/exutils.c
View file @
d4eb4155
...
...
@@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: exutils - interpreter/scanner utilities
* $Revision: 10
5
$
* $Revision: 10
6
$
*
*****************************************************************************/
...
...
@@ -189,7 +189,7 @@ acpi_ex_acquire_global_lock (
if
(
field_flags
&
AML_FIELD_LOCK_RULE_MASK
)
{
/* We should attempt to get the lock, wait forever */
status
=
acpi_ev_acquire_global_lock
(
ACPI_
UINT32_MAX
);
status
=
acpi_ev_acquire_global_lock
(
ACPI_
WAIT_FOREVER
);
if
(
ACPI_SUCCESS
(
status
))
{
locked
=
TRUE
;
}
...
...
drivers/acpi/include/acevents.h
View file @
d4eb4155
/******************************************************************************
*
* Name: acevents.h - Event subcomponent prototypes and defines
* $Revision:
79
$
* $Revision:
80
$
*
*****************************************************************************/
...
...
@@ -63,7 +63,7 @@ acpi_ev_is_notify_object (
acpi_status
acpi_ev_acquire_global_lock
(
u
32
timeout
);
u
16
timeout
);
acpi_status
acpi_ev_release_global_lock
(
...
...
drivers/acpi/include/acinterp.h
View file @
d4eb4155
/******************************************************************************
*
* Name: acinterp.h - Interpreter subcomponent prototypes and defines
* $Revision: 14
0
$
* $Revision: 14
1
$
*
*****************************************************************************/
...
...
@@ -377,7 +377,7 @@ acpi_ex_system_reset_event(
acpi_status
acpi_ex_system_wait_semaphore
(
acpi_handle
semaphore
,
u
32
timeout
);
u
16
timeout
);
/*
...
...
drivers/acpi/include/aclocal.h
View file @
d4eb4155
/******************************************************************************
*
* Name: aclocal.h - Internal data types used across the ACPI subsystem
* $Revision: 17
8
$
* $Revision: 17
9
$
*
*****************************************************************************/
...
...
@@ -27,7 +27,7 @@
#define __ACLOCAL_H__
#define
WAIT_FOREVER ((u32) -1)
#define
ACPI_WAIT_FOREVER 0xFFFF
/* u16, as per ACPI spec */
typedef
void
*
acpi_mutex
;
typedef
u32
ACPI_MUTEX_HANDLE
;
...
...
drivers/acpi/include/acpiosxf.h
View file @
d4eb4155
...
...
@@ -117,7 +117,7 @@ acpi_status
acpi_os_wait_semaphore
(
acpi_handle
handle
,
u32
units
,
u
32
timeout
);
u
16
timeout
);
acpi_status
acpi_os_signal_semaphore
(
...
...
drivers/acpi/include/acpixf.h
View file @
d4eb4155
...
...
@@ -281,7 +281,7 @@ acpi_install_gpe_handler (
acpi_status
acpi_acquire_global_lock
(
u
32
timeout
,
u
16
timeout
,
u32
*
handle
);
acpi_status
...
...
drivers/acpi/namespace/nsobject.c
View file @
d4eb4155
...
...
@@ -2,7 +2,7 @@
*
* Module Name: nsobject - Utilities for objects attached to namespace
* table entries
* $Revision: 8
4
$
* $Revision: 8
5
$
*
******************************************************************************/
...
...
@@ -173,13 +173,13 @@ acpi_ns_attach_object (
*
* FUNCTION: Acpi_ns_detach_object
*
* PARAMETERS: Node - An
object whose Value will be delet
ed
* PARAMETERS: Node - An
node whose object will be detach
ed
*
* RETURN: None.
*
* DESCRIPTION: De
lete the Value associated with a namespace object. If the
*
Value is an allocated object, it is freed. Otherwise, the
* field is simply cleared.
* DESCRIPTION: De
tach/delete an object associated with a namespace node.
*
if the object is an allocated object, it is freed.
*
Otherwise, the
field is simply cleared.
*
******************************************************************************/
...
...
@@ -234,6 +234,8 @@ acpi_ns_detach_object (
* RETURN: Current value of the object field from the Node whose
* handle is passed
*
* DESCRIPTION: Obtain the object attached to a namespace node.
*
******************************************************************************/
acpi_operand_object
*
...
...
@@ -266,7 +268,9 @@ acpi_ns_get_attached_object (
* PARAMETERS: Node - Parent Node to be examined
*
* RETURN: Current value of the object field from the Node whose
* handle is passed
* handle is passed.
*
* DESCRIPTION: Obtain a secondary object associated with a namespace node.
*
******************************************************************************/
...
...
@@ -292,11 +296,13 @@ acpi_ns_get_secondary_object (
*
* FUNCTION: Acpi_ns_attach_data
*
* PARAMETERS:
* PARAMETERS: Node - Namespace node
* Handler - Handler to be associated with the data
* Data - Data to be attached
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION:
Low-level attach data. Create and attach a Data object.
*
******************************************************************************/
...
...
@@ -311,7 +317,8 @@ acpi_ns_attach_data (
acpi_operand_object
*
data_desc
;
/* */
/* We only allow one attachment per handler */
prev_obj_desc
=
NULL
;
obj_desc
=
node
->
object
;
while
(
obj_desc
)
{
...
...
@@ -324,7 +331,6 @@ acpi_ns_attach_data (
obj_desc
=
obj_desc
->
common
.
next_object
;
}
/* Create an internal object for the data */
data_desc
=
acpi_ut_create_internal_object
(
ACPI_TYPE_LOCAL_DATA
);
...
...
@@ -335,7 +341,6 @@ acpi_ns_attach_data (
data_desc
->
data
.
handler
=
handler
;
data_desc
->
data
.
pointer
=
data
;
/* Install the data object */
if
(
prev_obj_desc
)
{
...
...
@@ -353,11 +358,13 @@ acpi_ns_attach_data (
*
* FUNCTION: Acpi_ns_detach_data
*
* PARAMETERS:
* PARAMETERS: Node - Namespace node
* Handler - Handler associated with the data
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION: Low-level detach data. Delete the data node, but the caller
* is responsible for the actual data.
*
******************************************************************************/
...
...
@@ -398,11 +405,14 @@ acpi_ns_detach_data (
*
* FUNCTION: Acpi_ns_get_attached_data
*
* PARAMETERS:
* PARAMETERS: Node - Namespace node
* Handler - Handler associated with the data
* Data - Where the data is returned
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION: Low level interface to obtain data previously associated with
* a namespace node.
*
******************************************************************************/
...
...
drivers/acpi/namespace/nsxfeval.c
View file @
d4eb4155
...
...
@@ -2,7 +2,7 @@
*
* Module Name: nsxfeval - Public interfaces to the ACPI subsystem
* ACPI Object evaluation interfaces
* $Revision:
3
$
* $Revision:
4
$
*
******************************************************************************/
...
...
@@ -570,11 +570,13 @@ acpi_get_devices (
*
* FUNCTION: Acpi_attach_data
*
* PARAMETERS:
* PARAMETERS: Obj_handle - Namespace node
* Handler - Handler for this attachment
* Data - Pointer to data to be attached
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION:
Attach arbitrary data and handler to a namespace node.
*
******************************************************************************/
...
...
@@ -621,11 +623,12 @@ acpi_attach_data (
*
* FUNCTION: Acpi_detach_data
*
* PARAMETERS:
* PARAMETERS: Obj_handle - Namespace node handle
* Handler - Handler used in call to Acpi_attach_data
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION:
Remove data that was previously attached to a node.
*
******************************************************************************/
...
...
@@ -670,11 +673,13 @@ acpi_detach_data (
*
* FUNCTION: Acpi_get_data
*
* PARAMETERS:
* PARAMETERS: Obj_handle - Namespace node
* Handler - Handler used in call to Attach_data
* Data - Where the data is returned
*
* RETURN: Status
*
* DESCRIPTION:
* DESCRIPTION:
Retrieve data that was previously attached to a namespace node.
*
******************************************************************************/
...
...
drivers/acpi/osl.c
View file @
d4eb4155
...
...
@@ -702,7 +702,7 @@ acpi_status
acpi_os_wait_semaphore
(
acpi_handle
handle
,
u32
units
,
u
32
timeout
)
u
16
timeout
)
{
acpi_status
status
=
AE_OK
;
struct
semaphore
*
sem
=
(
struct
semaphore
*
)
handle
;
...
...
@@ -739,7 +739,7 @@ acpi_os_wait_semaphore(
* Wait Indefinitely:
* ------------------
*/
case
WAIT_FOREVER
:
case
ACPI_
WAIT_FOREVER
:
ret
=
down_interruptible
(
sem
);
if
(
ret
<
0
)
status
=
AE_ERROR
;
...
...
drivers/acpi/scan.c
View file @
d4eb4155
...
...
@@ -258,6 +258,8 @@ acpi_bus_driver_init (
return_VALUE
(
result
);
}
device
->
driver
=
driver
;
/*
* TBD - Configuration Management: Assign resources to device based
* upon possible configuration and currently allocated resources.
...
...
drivers/acpi/tables/tbconvrt.c
View file @
d4eb4155
/******************************************************************************
*
* Module Name: tbconvrt - ACPI Table conversion utilities
* $Revision: 4
4
$
* $Revision: 4
5
$
*
*****************************************************************************/
...
...
@@ -36,11 +36,13 @@
*
* FUNCTION: Acpi_tb_get_table_count
*
* PARAMETERS:
* PARAMETERS: RSDP - Pointer to the RSDP
* RSDT - Pointer to the RSDT/XSDT
*
* RETURN:
* RETURN:
The number of tables pointed to by the RSDT or XSDT.
*
* DESCRIPTION: Calculate the number of tables
* DESCRIPTION: Calculate the number of tables. Automatically handles either
* an RSDT or XSDT.
*
******************************************************************************/
...
...
@@ -80,9 +82,9 @@ acpi_tb_get_table_count (
*
* FUNCTION: Acpi_tb_convert_to_xsdt
*
* PARAMETERS:
* PARAMETERS:
Table_info - Info about the RSDT
*
* RETURN:
* RETURN:
Status
*
* DESCRIPTION: Convert an RSDT to an XSDT (internal common format)
*
...
...
@@ -311,13 +313,11 @@ acpi_tb_convert_fadt2 (
*
* RETURN: Status
*
* DESCRIPTION:
* Converts a BIOS supplied ACPI 1.0 FADT to an intermediate
* ACPI 2.0 FADT. If the BIOS supplied a 2.0 FADT then it is simply
* copied to the intermediate FADT. The ACPI CA software uses this
* intermediate FADT. Thus a significant amount of special #ifdef
* type codeing is saved. This intermediate FADT will need to be
* freed at some point.
* DESCRIPTION: Converts a BIOS supplied ACPI 1.0 FADT to a local
* ACPI 2.0 FADT. If the BIOS supplied a 2.0 FADT then it is simply
* copied to the local FADT. The ACPI CA software uses this
* local FADT. Thus a significant amount of special #ifdef
* type codeing is saved.
*
******************************************************************************/
...
...
drivers/acpi/utilities/utmisc.c
View file @
d4eb4155
/*******************************************************************************
*
* Module Name: utmisc - common utility procedures
* $Revision: 8
5
$
* $Revision: 8
6
$
*
******************************************************************************/
...
...
@@ -685,7 +685,7 @@ acpi_ut_acquire_mutex (
this_thread_id
,
acpi_ut_get_mutex_name
(
mutex_id
)));
status
=
acpi_os_wait_semaphore
(
acpi_gbl_acpi_mutex_info
[
mutex_id
].
mutex
,
1
,
WAIT_FOREVER
);
1
,
ACPI_
WAIT_FOREVER
);
if
(
ACPI_SUCCESS
(
status
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_MUTEX
,
"Thread %X acquired Mutex [%s]
\n
"
,
this_thread_id
,
acpi_ut_get_mutex_name
(
mutex_id
)));
...
...
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