diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-12-11 08:06:25 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 |
| commit | 8c1186d38e9226e29bb6eed0745a7638a7f66e5b (patch) | |
| tree | fba237046e948542dc33ed9db73d12b35f4e9581 /lib/event.h | |
| parent | ba7d2705d6ee53b8bb897800fa7dbad01b48602a (diff) | |
*: Convert thread_execute to event_execute
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/event.h')
| -rw-r--r-- | lib/event.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/event.h b/lib/event.h index c38b7b6c32..cdb2284815 100644 --- a/lib/event.h +++ b/lib/event.h @@ -195,7 +195,7 @@ struct cpu_thread_history { _xref_t_a(timer_tv, TIMER, m, f, a, v, t) #define event_add_event(m, f, a, v, t) _xref_t_a(event, EVENT, m, f, a, v, t) -#define thread_execute(m, f, a, v) \ +#define event_execute(m, f, a, v) \ ({ \ static const struct xref_threadsched _xref __attribute__( \ (used)) = { \ @@ -205,7 +205,7 @@ struct cpu_thread_history { .event_type = EVENT_EXECUTE, \ }; \ XREF_LINK(_xref.xref); \ - _thread_execute(&_xref, m, f, a, v); \ + _event_execute(&_xref, m, f, a, v); \ }) /* end */ /* Prototypes. */ @@ -239,9 +239,9 @@ extern void _event_add_event(const struct xref_threadsched *xref, void (*fn)(struct event *), void *arg, int val, struct event **tref); -extern void _thread_execute(const struct xref_threadsched *xref, - struct thread_master *master, - void (*fn)(struct event *), void *arg, int val); +extern void _event_execute(const struct xref_threadsched *xref, + struct thread_master *master, + void (*fn)(struct event *), void *arg, int val); extern void event_cancel(struct event **event); extern void event_cancel_async(struct thread_master *, struct event **, void *); |
