Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-19 Thread Shu Wang
r 19, 2017 4:02:50 PM > Subject: Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same > core id > > On Wed, 18 Oct 2017, Guenter Roeck wrote: > > On 10/18/2017 07:28 PM, Shu Wang wrote: > > > > > > > > Fix kernel warning on my 4cpus 2core_i

Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-19 Thread Thomas Gleixner
On Wed, 18 Oct 2017, Guenter Roeck wrote: > On 10/18/2017 07:28 PM, Shu Wang wrote: > > > > > > Fix kernel warning on my 4cpus 2core_id system. The cpu0 and cpu1 > > > > > > have same core_id 0, so both cpu0 and cpu1 will try to create file > > > > > > temp2_label when it's online. > > > > > > >

Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-18 Thread Guenter Roeck
yiz...@redhat.com Sent: Tuesday, October 17, 2017 11:25:50 PM Subject: Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id On Tue, Oct 17, 2017 at 04:44:50PM +0800, shuw...@redhat.com wrote: From: Shu Wang Fix kernel warning on my 4cpus 2core_id system. The cpu0 and cpu1 h

Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-18 Thread Shu Wang
er.kernel.org, > >> linux-kernel@vger.kernel.org, ch...@redhat.com, yiz...@redhat.com > >> Sent: Tuesday, October 17, 2017 11:25:50 PM > >> Subject: Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same > >> core id > >> > >> On

Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-18 Thread Guenter Roeck
t: Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id On Tue, Oct 17, 2017 at 04:44:50PM +0800, shuw...@redhat.com wrote: From: Shu Wang Fix kernel warning on my 4cpus 2core_id system. The cpu0 and cpu1 have same core_id 0, so both cpu0 and cpu1 will try to create file temp2_la

Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-17 Thread Shu Wang
> From: "Guenter Roeck" > To: shuw...@redhat.com > Cc: "fenghua yu" , jdelv...@suse.com, > linux-hw...@vger.kernel.org, > linux-kernel@vger.kernel.org, ch...@redhat.com, yiz...@redhat.com > Sent: Tuesday, October 17, 2017 11:25:50 PM > Subject: Re: [P

Re: [PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-17 Thread Guenter Roeck
On Tue, Oct 17, 2017 at 04:44:50PM +0800, shuw...@redhat.com wrote: > From: Shu Wang > > Fix kernel warning on my 4cpus 2core_id system. The cpu0 and cpu1 have > same core_id 0, so both cpu0 and cpu1 will try to create file temp2_label > when it's online. > What system/cpu is that ? Normally I

[PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-17 Thread shuwang
From: Shu Wang Fix kernel warning on my 4cpus 2core_id system. The cpu0 and cpu1 have same core_id 0, so both cpu0 and cpu1 will try to create file temp2_label when it's online. - coretemp_cpu_online(cpu=0) - create_core_data(cpu=0, attr_no=2) - create_core_attrs(attr_no=2) - coretemp_cpu_o