Re: [PATCH 10/17] x86: Use new cache mode type in setting page attributes

2014-11-03 Thread Thomas Gleixner
On Mon, 3 Nov 2014, Juergen Gross wrote: > On 10/31/2014 04:34 PM, Thomas Gleixner wrote: > > On Fri, 31 Oct 2014, Juergen Gross wrote: > > > --- a/arch/x86/mm/pageattr.c > > > +++ b/arch/x86/mm/pageattr.c > > > @@ -1304,12 +1304,6 @@ static int __change_page_attr_set_clr(struct > > > cpa_data *cpa

Re: [PATCH 10/17] x86: Use new cache mode type in setting page attributes

2014-11-02 Thread Juergen Gross
On 10/31/2014 04:34 PM, Thomas Gleixner wrote: On Fri, 31 Oct 2014, Juergen Gross wrote: --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -1304,12 +1304,6 @@ static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias) return 0; } -static inline int cache_a

Re: [PATCH 10/17] x86: Use new cache mode type in setting page attributes

2014-10-31 Thread Thomas Gleixner
On Fri, 31 Oct 2014, Juergen Gross wrote: > --- a/arch/x86/mm/pageattr.c > +++ b/arch/x86/mm/pageattr.c > @@ -1304,12 +1304,6 @@ static int __change_page_attr_set_clr(struct cpa_data > *cpa, int checkalias) > return 0; > } > > -static inline int cache_attr(pgprot_t attr) > -{ > - retu

[PATCH 10/17] x86: Use new cache mode type in setting page attributes

2014-10-31 Thread Juergen Gross
Instead of directly using the cache mode bits in the pte switch to using the cache mode type in the functiuons for modifying page attributes. Signed-off-by: Stefan Bader Signed-off-by: Juergen Gross --- arch/x86/mm/pageattr.c | 54 +++--- 1 file chang