[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <de7b5aa2-9866-c93e-0f1b-4ffff82d2f1e@infradead.org>
Date: Fri, 2 Oct 2020 20:27:41 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
x86@...nel.org, Borislav Petkov <bp@...e.de>,
Ingo Molnar <mingo@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>
Cc: Tony Luck <tony.luck@...el.com>, Len Brown <len.brown@...el.com>,
"Ravi V. Shankar" <ravi.v.shankar@...el.com>,
linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>,
Dave Hansen <dave.hansen@...el.com>,
"Gautham R. Shenoy" <ego@...ux.vnet.ibm.com>,
Kan Liang <kan.liang@...ux.intel.com>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
Subject: Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface
On 10/2/20 6:17 PM, Ricardo Neri wrote:
> +/**
> + * arch_get_cpu_type() - Get the CPU type number
> + * @cpu: Index of the CPU of which the index is needed
> + *
> + * Get the CPU type number of @cpu, a non-zero unsigned 32-bit number that
Are you sure that @cpu is non-zero?
> + * uniquely identifies a type of CPU micro-architecture. All CPUs of the same
> + * type have the same type number. Type numbers are defined by each CPU
> + * architecture.
> + */
> +u32 __weak arch_get_cpu_type(int cpu)
> +{
> + return 0;
> +}
arch_get_cpu_type() in patch 4/4 allows @cpu to be 0.
--
~Randy
Powered by blists - more mailing lists