# Re: \[PATCH 04/10\] watchdog/hardlockup: In watchdog\_hardlockup\_check() use cpumask\_copy()

- From: Petr Mladek \<pmladek@suse.com\>
- Date: 2023-05-30 14:41:06 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/05/2214818
- Thread: https://ratatoskr.run/linuxppc-dev/2023/05/2211972/t.md

```text
On Fri 2023-05-26 18:41:34, Douglas Anderson wrote:
> In the patch ("watchdog/hardlockup: add a "cpu" param to
> watchdog_hardlockup_check()") we started using a cpumask to keep track
> of which CPUs to backtrace. When setting up this cpumask, it's better
> to use cpumask_copy() than to just copy the structure directly. Fix this.
> 
> Suggested-by: Petr Mladek <pmladek@suse.com>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>

Reviewed-by: Petr Mladek <pmladek@suse.com>

Best Regards,
Petr
```
