On 8 October 2023 18:20:20 CEST Johannes Schauer Marin Rodrigues wrote:
> I'm wondering whether it'd make sense for the Debian kernel to be built with
> CONFIG_PREEMPT_DYNAMIC=y.

Thanks for raising this, as the current situation appears a bit 'weird'.

======= PC (amd64) ======
$ uname -a
Linux bagend 6.5.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.3-1 (2023-09-13) 
x86_64 GNU/Linux

$ grep PREEMPT_DYNAMIC /boot/config-6.5.0-1-amd64 
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y
========================

======= SBC (arm64) ======
$ uname -a
Linux cs21 6.1.0-13-arm64 #1 SMP Debian 6.1.55-1 (2023-09-29) aarch64 GNU/Linux

$ grep PREEMPT_DYNAMIC /boot/config-6.1.0-13-arm64 
# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_KEY=y
=========================
(grep output is the same on a 6.6 kernel I use on another arm64 SBC)

In the Debian kernel it's not explicitly enabled and it's having a different
effect on amd64 compared to arm64.
In any case, I think it would be useful if this setting was explicitly set or
unset, or the above situation been made explicit ... with a nice commit message
explaining why those settings were made.

Cheers,
  Diederik

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to