On Mon, Aug 02, 2021 at 12:15:55PM -0400, Alexander Motin wrote:
> On 31.07.2021 08:48, Konstantin Belousov wrote:
> >> +static void
> >> +coretemp_wrmsr(void *arg)
> >> +{
> >> +  struct coretemp_args *args = arg;
> >> +
> >> +  wrmsr(args->msr, args->val);
> >> +}
> > We have x86_msr_op().  It covers coretemp_wrmsr(), and with slight
> > change of the interface would also handle the functionality of
> > coretemp_rdmsr().
> 
> As I see x86_msr_op() is tuned for MSR modification on all CPUs, while
> this code touches one CPU at a time.

https://reviews.freebsd.org/D31386
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to