From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933337AbeAXLsJ (ORCPT ); Wed, 24 Jan 2018 06:48:09 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:60338 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932891AbeAXLsI (ORCPT ); Wed, 24 Jan 2018 06:48:08 -0500 Date: Wed, 24 Jan 2018 12:47:25 +0100 (CET) From: Thomas Gleixner To: Jia-Ju Bai cc: ning.sun@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, tboot-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel: x86: tboot: Replace mdelay with usleep_range in tboot_wait_for_aps In-Reply-To: <1516759102-17549-1-git-send-email-baijiaju1990@gmail.com> Message-ID: References: <1516759102-17549-1-git-send-email-baijiaju1990@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jan 2018, Jia-Ju Bai wrote: > The function tboot_wait_for_aps is not called in atomic context. > Thus mdelay can be replaced with usleep_range, to reduce busy wait. And how did you establish that it's not called in atomic context? Thanks, tglx