Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1402558ybj; Tue, 5 May 2020 20:13:54 -0700 (PDT) X-Google-Smtp-Source: APiQypIw3lTWVFpJJBRyp1+9e2PDyAEMSOw5GA/b1uRuO4uPvbZmqMVOCDEEpBxuGPatJHQoX5Df X-Received: by 2002:a17:906:6a48:: with SMTP id n8mr5309496ejs.315.1588734834828; Tue, 05 May 2020 20:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588734834; cv=none; d=google.com; s=arc-20160816; b=fio9BvuXMQLNd2l9t87AmeGIca9nZGqAbPzRBdjJQCbx9pGnxpzzRm5QBLQxejYuwP IOTTR6GBXdWJ0ogcthQGSACxQOKseahwny+DvWQ7bvB29FzvuzxMreieB4+39E4ew9Kt 97/Ci24bhd9t+xgAcEdJ+u/fqsNTh8d4jTaOaWm6MK0j80UkDy/44JzH8tr3eRRTWRrg FHE2Lhk6oAXCDabApec9TgxVxM5DarUqYID+Y9KbY9HN1DY8OKAX1qeEM3RCpcGgzUqK PqIlqR+zJqthvKP0kRLrN5tbWempXDELDNTLyIFRUUEwUJqxxOq5zV331MLLWCWD7i16 5jxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=9maA9XM1OgVl4eDdiJRcvmCTgJSmDjASQXMHNFQX0SI=; b=H1a+Wwd2W7L/tJG6ILy5bx+RnpJxAueOub0QuplML7uYE56kfHzCnN+2R+95r5eQfL A2C7LtuEYJpTMgbd5lVtQFACsOXOtal1nRnBPTWbncvXpDiCZZtby0pIeerWck/htziN 2T/ohMa3VVgbNTRtGAUR1GrsIx72kYsEW9cCMa79He8qqH9eJw5QPSxrXuoDd31ZEGwO XWQFqX+UyXWSZKU/0xESZKVDxU68LplHN9Qy4yPWJP5gAhcOAzPHDbh0+8qRar0WOBS8 QQyvzZ6z++qZdUsMUQJSai+ZbHT2OysDteXGi+vwamlQhkHG3YuBASvoDP1iBtJE3+hU oacw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si314223edm.263.2020.05.05.20.13.29; Tue, 05 May 2020 20:13:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726114AbgEFCvE (ORCPT + 99 others); Tue, 5 May 2020 22:51:04 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:46451 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbgEFCvE (ORCPT ); Tue, 5 May 2020 22:51:04 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 49H1Lb02frz9sSw; Wed, 6 May 2020 12:51:02 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: e4a884cc28fa3f5d8b81de46998ffe29b4ad169e In-Reply-To: <1586249263-14048-2-git-send-email-ego@linux.vnet.ibm.com> To: "Gautham R. Shenoy" , Nathan Lynch , Vaidyanathan Srinivasan , Kamalesh Babulal , "Naveen N. Rao" , Tyrel Datwyler From: Michael Ellerman Cc: "Gautham R. Shenoy" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/5] powerpc: Move idle_loop_prolog()/epilog() functions to header file Message-Id: <49H1Lb02frz9sSw@ozlabs.org> Date: Wed, 6 May 2020 12:51:02 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-04-07 at 08:47:39 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > Currently prior to entering an idle state on a Linux Guest, the > pseries cpuidle driver implement an idle_loop_prolog() and > idle_loop_epilog() functions which ensure that idle_purr is correctly > computed, and the hypervisor is informed that the CPU cycles have been > donated. > > These prolog and epilog functions are also required in the default > idle call, i.e pseries_lpar_idle(). Hence move these accessor > functions to a common header file and call them from > pseries_lpar_idle(). Since the existing header files such as > asm/processor.h have enough clutter, create a new header file > asm/idle.h. Finally rename idle_loop_prolog() and idle_loop_epilog() > to pseries_idle_prolog() and pseries_idle_epilog() as they are only > relavent for on pseries guests. > > Signed-off-by: Gautham R. Shenoy Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e4a884cc28fa3f5d8b81de46998ffe29b4ad169e cheers