sched_ext: Use sizeof_field for key_len in dsq_hash_params

Update the `dsq_hash_params` initialization to use `sizeof_field`
for the `key_len` field instead of a hardcoded value.

This improves code readability and ensures the key length dynamically
matches the size of the `id` field in the `scx_dispatch_q` structure.

Signed-off-by: Liang Jie <liangjie@lixiang.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Liang Jie 2024-12-13 17:52:54 +08:00 • committed by Tejun Heo
commit e197f5ec3a