]> git.baikalelectronics.ru Git - kernel.git/commit
xen/x86: drop redundant zeroing from cpu_initialize_context()
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 15:05:29 +0000 (17:05 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 20 Sep 2021 14:55:54 +0000 (16:55 +0200)
commit527fe9a3f68b31c2c5a6e1776e9c5aa30704b37e
treed63181db99574ee5b435926248b75812b6fdb8ed
parent7eda5049bd7927772bd8922a3ea156be591c3b7a
xen/x86: drop redundant zeroing from cpu_initialize_context()

Just after having obtained the pointer from kzalloc() there's no reason
at all to set part of the area to all zero yet another time. Similarly
there's no point explicitly clearing "ldt_ents".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrvsky@oracle.com>
Link: https://lore.kernel.org/r/14881835-a48e-29fa-0870-e177b10fcf65@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/smp_pv.c