Re: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

From: Richard Cochran
Date: Mon May 25 2020 - 02:16:35 EST


On Mon, May 25, 2020 at 04:50:28AM +0000, Jianyong Wu wrote:
> How about adding an extra argument in struct ptp_clock_info to serve as a flag, then we can control this flag using IOCTL to determine the counter type.

no, No, NO!

> > From your description, this "flag" really should be a module parameter.
> Maybe use flag as a module parameter is a better way.

Yes.

Thanks,
Richard