diff options
author | Tommy Kardach <thomaskardach@google.com> | 2022-08-11 21:54:20 +0000 |
---|---|---|
committer | Tommy Kardach <thomaskardach@google.com> | 2022-08-29 20:52:42 +0000 |
commit | bc1cbc63b21a3daa466752bee6468672f7437d95 (patch) | |
tree | ece93ac575a40a1e885ee30deaa8df7ce8dfdcec /lwis_fence.c | |
parent | 55f206681a94d215cb67eb7315b581cda11f1570 (diff) | |
download | lwis-bc1cbc63b21a3daa466752bee6468672f7437d95.tar.gz |
LWIS: Rename allow_counter_eq to is_level_triggered
Bug: 241596640
Test: Unit Tests
Change-Id: I37023bb556d2ef14a2dc0b13c696fabed01463a2
Signed-off-by: Tommy Kardach <thomaskardach@google.com>
Diffstat (limited to 'lwis_fence.c')
-rw-r--r-- | lwis_fence.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lwis_fence.c b/lwis_fence.c index 3fdd509..ceda761 100644 --- a/lwis_fence.c +++ b/lwis_fence.c @@ -333,7 +333,7 @@ static int lwis_trigger_fence_add_transaction(int fence_fd, struct lwis_client * fence_fd, transaction->info.id, *fence_status); #endif /* If edge triggering is enabled, return an error */ - if (!transaction->info.allow_counter_eq) { + if (!transaction->info.is_level_triggered) { ret = -EINVAL; } } @@ -466,7 +466,7 @@ int lwis_parse_trigger_condition(struct lwis_client *client, struct lwis_transac /* If level triggering is enabled, check if the trigger condition evaluates * to true. If so, queue the transaction to be executed immediately. */ - if (info->allow_counter_eq && + if (info->is_level_triggered && fence_status != LWIS_FENCE_STATUS_NOT_SIGNALED) { if (lwis_fence_triggered_condition_ready(transaction, fence_status)) { |