From: "Jan Beulich" Subject: Re: [PATCH 3/3] x86/HPET: cache MSI message last written Date: Fri, 19 Oct 2012 08:57:40 +0100 Message-ID: <5081241402000078000A2837@nat28.tlf.novell.com> References: <507FF88702000078000A24FE@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 18.10.12 at 18:42, Keir Fraser wrote: > On 18/10/2012 11:39, "Jan Beulich" wrote: > >>>>> On 18.10.12 at 10:22, Keir Fraser wrote: >>> On 16/10/2012 16:11, "Jan Beulich" wrote: >>> >>>> Rather than spending measurable amounts of time reading back the most >>>> recently written message, cache it in space previously unused, and thus >>>> accelerate the CPU's entering of the intended C-state. >>>> >>>> hpet_msi_read() ends up being unused after this change, but rather than >>>> removing the function, it's being marked "unused" in order - that way >>>> it can easily get used again should a new need for it arise. >>> >>> Please use __attribute_used__ >> >> That wouldn't be correct: The function _is_ unused (and there's >> no issue if it was used afaik), and the __used__ attribute ought >> to tell the compiler to keep the function around despite not >> having (visible to it) callers. > > Perhaps our __attribute_used__ definition should change, then? I don't think so - this has its own value as is. We may want to add a Linux-like __maybe_unused, though. Jan