From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756702Ab3LSQKJ (ORCPT ); Thu, 19 Dec 2013 11:10:09 -0500 Received: from terminus.zytor.com ([198.137.202.10]:33232 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311Ab3LSQKE (ORCPT ); Thu, 19 Dec 2013 11:10:04 -0500 Message-ID: <52B31A39.5030700@zytor.com> Date: Thu, 19 Dec 2013 08:09:29 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Ingo Molnar CC: Len Brown , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Len Brown , stable@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Mike Galbraith , Borislav Petkov Subject: Re: [PATCH] x86 idle: repair large-server 50-watt idle-power regression References: <20131219122257.GC11279@gmail.com> <52B316FF.50906@zytor.com> <20131219160210.GA28426@gmail.com> In-Reply-To: <20131219160210.GA28426@gmail.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/19/2013 08:02 AM, Ingo Molnar wrote: >> >> __monitor() currently doesn't, which is idiotic. > > Hm, __monitor() seems to take a void *: > > arch/x86/include/asm/processor.h:static inline void __monitor(const void *eax, unsigned long ecx, > > So writing: > > if (this_cpu_has(X86_FEATURE_CLFLUSH_MONITOR)) > clflush(¤t_thread_info()->flags); > > __monitor(¤t_thread_info()->flags, 0, 0); > Yes, brain failure on my part. -hpa