Skip to content

Commit 6c8ff6d

Browse files
committed
linuxkm/x86_vector_register_glue.c: in wc_save_vector_registers_x86(), don't render warning of call while non-preemptible if WC_SVR_FLAG_INHIBIT was passed in.
1 parent dd158b0 commit 6c8ff6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

linuxkm/x86_vector_register_glue.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ WARN_UNUSED_RESULT int wc_save_vector_registers_x86(enum wc_svr_flags flags)
332332
* a second look at preempt_count().
333333
*/
334334
if (((preempt_count() & (NMI_MASK | HARDIRQ_MASK)) != 0) || (task_pid_nr(current) == 0)) {
335-
VRG_PR_WARN_X("WARNING: wc_save_vector_registers_x86 called with preempt_count 0x%x and pid %d on CPU %d.\n", preempt_count(), task_pid_nr(current), raw_smp_processor_id());
335+
if (! (flags & WC_SVR_FLAG_INHIBIT))
336+
VRG_PR_WARN_X("WARNING: wc_save_vector_registers_x86(0x%x) called with preempt_count 0x%x and pid %d on CPU %d.\n", (unsigned)flags, preempt_count(), task_pid_nr(current), raw_smp_processor_id());
336337
return WC_ACCEL_INHIBIT_E;
337338
}
338339

0 commit comments

Comments
 (0)