aboutsummaryrefslogtreecommitdiff
path: root/core/timebase.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/timebase.c')
-rw-r--r--core/timebase.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/core/timebase.c b/core/timebase.c
index b1a02a4..4cb0b51 100644
--- a/core/timebase.c
+++ b/core/timebase.c
@@ -1,17 +1,8 @@
-/* Copyright 2013-2014 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Wait for things, by waiting for timebase to tick over
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright 2013-2019 IBM Corp.
*/
#include <timebase.h>
@@ -44,6 +35,7 @@ static void time_wait_poll(unsigned long duration)
}
while (tb_compare(now, end) != TB_AAFTERB) {
+
unsigned long remaining = end - now;
/* Call pollers periodically but not continually to avoid