Skip to content
Commit 7f1d5a47 authored by Allan Stephens's avatar Allan Stephens Committed by Anas Nashif
Browse files

kernel: Minor optimization to kernel event logger timestamping



Rewrites the timestamping logic to always generate timestamps
via a function pointer that is initialized to sys_cycle_get_32(),
but can be changed to point to a user-supplied function. This
eliminates the need for an if/then/else construct in every place
that a timestamp is generated.

Change-Id: Id11f8c41b193a93cece16565978a525056010f0e
Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
parent aca2baa4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment