lkml.org 
[lkml]   [2020]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/10] x86/entry: Pass irqentry_state_t by reference
On Fri, Oct 23, 2020 at 11:56:33PM +0200, Thomas Gleixner wrote:
> On Thu, Oct 22 2020 at 15:26, ira weiny wrote:
> > From: Ira Weiny <ira.weiny@intel.com>
> >
> > In preparation for adding PKS information to struct irqentry_state_t
> > change all call sites and usages to pass the struct by reference
> > instead of by value.
>
> This still does not explain WHY you need to do that. 'Preparation' is a
> pretty useless information.
>
> What is the actual reason for this? Just because PKS information feels
> better that way?
>
> Also what is PKS information? Changelogs have to make sense on their own
> and not only in the context of a larger series of changes.

I've reworded this to explain the addition of new members which would make
passing by value less efficient with additional structure changes being added
later in the series.

>
> > While we are editing the call sites it is a good time to standardize on
> > the name 'irq_state'.
>
> While at it change all usage sites to consistently use the variable
> name 'irq_state'.
>
> Or something like that. See Documentation/process/...

Sorry, bad habit.

Fixed.

Thanks,
Ira

>
> Thanks,
>
> tglx
>

\
 
 \ /
  Last update: 2020-10-27 08:12    [W:0.049 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site