This patch is used to fix grub menu gets stuck in server
AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200
ratio. The root cause analysis as below:
Q:
What's the code logic?
A:
"grub_tsc_init" function will init tsc by setting grub_tsc_rate,
which call stack is:
grub_tsc
Adding "if (grub_tsc_rate == 0)" judgement just in case other unknown
instruction exception, so that
"grub_tsc_calibrate_from_pit||grub_tsc_calibrate_from_efi" getting
"grub_tsc_rate" methods have a opportunity to be performed but
causing grub menu stucking.
Signed-off-by: Duan Yayong
Signed-off-
This patch is used to fix grub menu gets stuck in server
AC poweron/poweroff stress test of x86_64, which is reproduced with 1/200
ratio. The root cause analysis as below:
Q. What's the code logic?
A. "grub_tsc_init" function will init tsc by setting grub_tsc_rate, which call
stack is:
grub_ts