Messages in this thread | | | From | "" <> | Subject | RE: [PATCH v2 6/8] x86: Add hardware prefetch control support for x86 | Date | Fri, 18 Mar 2022 06:41:04 +0000 |
| |
> > +static int broadwell_write_pfreg(enum pfctl_attr pattr, unsigned int cpu, > > + unsigned int level, u64 val) > > +{ > > + int ret; > > + u64 reg; > > + > > + ret = rdmsrl_on_cpu(cpu, MSR_MISC_FEATURE_CONTROL, ®); > > + if (ret) > > + return ret; > > + > > + ret = broadwell_modify_pfreg(pattr, ®, level, val); > > + if (ret < 0) > > + return ret; > > + > > + ret = wrmsrl_on_cpu(cpu, MSR_MISC_FEATURE_CONTROL, reg); > > + if (ret) > > + return ret; > > + > > + return 0; > > +} > > This needs to integrate _somehow_ with the pseudo_lock.c code. Right now, I > suspect that code would just overwrite any MSR changes made by this code.
I lacked consideration for pseudo_lock.c code. I try to integration with that code.
| |