Re: [PATCH v4 15/21] x86/resctrl: Abstract __rmid_read()

From: Fenghua Yu
Date: Tue Jun 07 2022 - 21:38:26 EST


On Tue, Apr 12, 2022 at 12:44:13PM +0000, James Morse wrote:
> @@ -343,7 +355,7 @@ static u64 __mon_event_count(u32 rmid, struct rmid_read *rr)
> * Code would never reach here because an invalid
> * event id would fail the __rmid_read.

__rmid_read() needs to be fixed.

> */
> - return RMID_VAL_ERROR;
> + return -EINVAL;
> }
>
> if (rr->first) {

Thanks.

-Fenghua