Skip to content

Commit

Permalink
Merge branch '6.11/prjc' into 6.11/main
Browse files Browse the repository at this point in the history
Resolve build failure with CONFIG_OSNOISE_TRACER=y

Fixes torvalds#363
  • Loading branch information
damentz committed Nov 16, 2024
2 parents c9a9b55 + 1463b60 commit 513f290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/trace/trace_osnoise.c
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,9 @@ static void osnoise_sleep(bool skip_period)
*/
static inline int osnoise_migration_pending(void)
{
#ifdef CONFIG_SCHED_ALT
return 0;
#else
if (!current->migration_pending)
return 0;

Expand All @@ -1686,6 +1689,7 @@ static inline int osnoise_migration_pending(void)
mutex_unlock(&interface_lock);

return 1;
#endif
}

/*
Expand Down

0 comments on commit 513f290

Please sign in to comment.