mirror of
https://github.com/acpica/acpica/
synced 2025-01-15 22:09:17 +03:00
Support for ACPI 2.0 method SyncLevel
date 2001.02.14.21.30.00; author rmoore1; state Exp;
This commit is contained in:
parent
b4489d2842
commit
4acd504d80
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: amcreate - Named object creation
|
||||
* $Revision: 1.53 $
|
||||
* $Revision: 1.54 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -852,15 +852,15 @@ AcpiAmlExecCreateMethod (
|
||||
/*
|
||||
* Get the concurrency count. If required, a semaphore will be
|
||||
* created for this method when it is parsed.
|
||||
*
|
||||
* TBD: [Future] for APCI 2.0, there will be a SyncLevel value, not
|
||||
* just a flag
|
||||
* Concurrency = SyncLevel + 1;.
|
||||
*/
|
||||
|
||||
if (MethodFlags & METHOD_FLAGS_SERIALIZED)
|
||||
{
|
||||
ObjDesc->Method.Concurrency = 1;
|
||||
/*
|
||||
* ACPI 1.0: Concurrency = 1
|
||||
* ACPI 2.0: Concurrency = (SyncLevel (in method declaration) + 1)
|
||||
*/
|
||||
ObjDesc->Method.Concurrency = (UINT8)
|
||||
(((MethodFlags & METHOD_FLAGS_SYNCH_LEVEL) >> 4) + 1);
|
||||
}
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user