# Re: \[PATCH v2 5/5\] ftrace: Use preemption model accessors for trace header printout

- From: Steven Rostedt \<rostedt@goodmis.org\>
- Date: 2021-11-10 20:36:24 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/11/1568862
- Thread: https://ratatoskr.run/linuxppc-dev/2021/11/1568852/t.md

```text
On Wed, 10 Nov 2021 20:24:48 +0000
Valentin Schneider [ref] wrote:

> Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual
> preemption model of the live kernel. Use the newly-introduced accessors
> instead.
> 
> Signed-off-by: Valentin Schneider <redacted>
> ---
>  kernel/trace/trace.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)

Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve
```
