lkml.org 
[lkml]   [2021]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/9] arm64: Make __get_wchan() use arch_stack_walk()
On Wed, Nov 17, 2021 at 02:07:33PM +0000, Mark Rutland wrote:

> +static bool get_wchan_cb(void *arg, unsigned long pc)
> +{
> + struct wchan_info *wchan_info = arg;
> +
> + if (!in_sched_functions(pc)) {
> + wchan_info->pc = pc;
> + return false;
> + }
> + return wchan_info->count++ < 16;
> +}

I don't love the magic number but it was there before so not a problem
for this patch so

Reviewed-by: Mark Brown <broonie@kernel.org>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2021-11-17 16:51    [W:0.198 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site