Skip to content
Snippets Groups Projects
Commit 2e16f46d authored by Jacob Pan's avatar Jacob Pan Committed by 谢秀奇
Browse files

x86/apic: Unify duplicated local apic timer clockevent initialization


mainline inclusion
from mainline-6eb4f082 undefined
commit 6eb4f082
category: bugfix
bugzilla: 14416
CVE: NA

-------------------------------------------------

Local APIC timer clockevent parameters can be calculated based on platform
specific methods. However the code is mostly duplicated with the interrupt
based calibration. The commit which increased the max_delta parameter
updated only one place and made the implementations diverge.

Unify it to prevent further damage.

[ tglx: Rename function to lapic_init_clockevent() and adjust changelog a bit ]

Fixes: 4aed89d6 ("x86, lapic-timer: Increase the max_delta to 31 bits")
Reported-by: default avatarDaniel Drake <drake@endlessm.com>
Signed-off-by: default avatarJacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Len Brown <lenb@kernel.org>
Link: https://lkml.kernel.org/r/1556213272-63568-1-git-send-email-jacob.jun.pan@linux.intel.com


Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarYao Hongbo <yaohongbo@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent f82a53d3
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment