Re: [PATCH] x86/Hyper-V: Initialize Hyper-V stimer after enabling lapic

From
Tianyu Lan <hidden>
Date
2021-08-05 12:45:54
Also in
lkml
Reply to
Praveen Kumar, 2021-08-05
Hi Praveen:
    Thanks for your review.

On 8/5/2021 2:41 PM, Praveen Kumar wrote:
quoted
+
+static void __init hv_setup_initr_mode(void)
+{
+	if (old_setup_initr_mode)
+		old_setup_initr_mode();
+
+	/*
+	 * The direct-mode STIMER depends on LAPIC and so allocate
+	 * STIMER after calling initr node callback.
+	 */
+	(void)hv_stimer_alloc(false);
In my understanding, in previous implementation we were ignoring the return error as there was a fallback handling for LAPIC.
However, I'm not seeing the same here, or am I missing something ?
Nice catch. The original comment should be keep and will add back in the next version.
Thread (4 messages) 4 messages, 3 authors, last reply 2021-08-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help