LADI
/
spa
1
Fork 0

fix -UFASTPATH compilation

This commit is contained in:
Wim Taymans 2023-05-22 11:30:38 +02:00
parent 46add98c0a
commit 79d1278b2e
2 changed files with 5 additions and 4 deletions

View File

@ -1088,13 +1088,14 @@ static void node_on_data_fd_events(struct spa_source *source)
pw_log_info("(%s-%u) client missed %"PRIu64" wakeups",
node->name, node->info.id, cmd - 1);
spa_log_trace_fp(impl->log, "%p: got complete %d", impl, status);
if (impl->resource && impl->resource->version < 5) {
struct pw_node_activation *a = node->rt.activation;
int status = a->state[0].status;
spa_log_trace_fp(impl->log, "%p: got ready %d", impl, status);
spa_node_call_ready(&impl->callbacks, status);
} else {
spa_log_trace_fp(impl->log, "%p: got complete", impl);
pw_context_driver_emit_complete(node->context, node);
}
}

View File

@ -1167,16 +1167,16 @@ static inline void calculate_stats(struct pw_impl_node *this, struct pw_node_ac
{
uint64_t signal_time = a->signal_time;
uint64_t prev_signal_time = a->prev_signal_time;
uint64_t process_time = a->finish_time - a->signal_time;
uint64_t period_time = signal_time - prev_signal_time;
if (SPA_LIKELY(signal_time > prev_signal_time)) {
uint64_t process_time = a->finish_time - a->signal_time;
uint64_t period_time = signal_time - prev_signal_time;
float load = (float) process_time / (float) period_time;
a->cpu_load[0] = (a->cpu_load[0] + load) / 2.0f;
a->cpu_load[1] = (a->cpu_load[1] * 7.0f + load) / 8.0f;
a->cpu_load[2] = (a->cpu_load[2] * 31.0f + load) / 32.0f;
}
pw_log_trace_fp("%p: graph completed wait:%"PRIu64" run:%"PRIu64
" busy:%"PRIu64" period:%"PRIu64" cpu:%f:%f:%f", node,
" busy:%"PRIu64" period:%"PRIu64" cpu:%f:%f:%f", this,
a->awake_time - signal_time,
a->finish_time - a->awake_time,
process_time,