lkml.org 
[lkml]   [2022]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v6 19/21] x86/virt/tdx: Initialize all TDMRs
From

> + next = out.rdx;
> + /* Allow scheduling when needed */
> + if (need_resched())
> + cond_resched();

cond_resched already includes the need_resched check. That is why it is
called cond_


\
 
 \ /
  Last update: 2022-10-27 14:32    [W:0.358 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site