From: Dan Carpenter <hidden> Date: 2017-08-11 20:09:43
There is a typo so we call unlock instead of lock.
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Dan Carpenter <redacted>
---
I also don't understand how the &nest_imc_refc[node_id].lock works. Why
can't we use ref->lock everywhere? They seem equivalent, and my static
checker complains if we call the same lock different names.
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-08-14 03:30:43
Dan Carpenter [off-list ref] writes:
There is a typo so we call unlock instead of lock.
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Dan Carpenter <redacted>
---
I also don't understand how the &nest_imc_refc[node_id].lock works. Why
can't we use ref->lock everywhere? They seem equivalent, and my static
checker complains if we call the same lock different names.
That looks like a bug to me, ie. we should always use ref.
Maddy?
cheers
On Saturday 12 August 2017 01:35 AM, Dan Carpenter wrote:
There is a typo so we call unlock instead of lock.
Reviewed-by: Madhavan Srinivasan <redacted>
nest_imc_refc used to maintain list of perf sessions thats using the
nest units currently. This is needed in turning off nest engine microcode
when not in use.
Yes will send a patch to fix ref->lock change.
Thanks for fix
Maddy
quoted hunk
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Dan Carpenter <redacted>
---
I also don't understand how the &nest_imc_refc[node_id].lock works. Why
can't we use ref->lock everywhere? They seem equivalent, and my static
checker complains if we call the same lock different names.
On Monday 14 August 2017 09:00 AM, Michael Ellerman wrote:
Dan Carpenter [off-list ref] writes:
quoted
There is a typo so we call unlock instead of lock.
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Dan Carpenter <redacted>
---
I also don't understand how the &nest_imc_refc[node_id].lock works. Why
can't we use ref->lock everywhere? They seem equivalent, and my static
checker complains if we call the same lock different names.
That looks like a bug to me, ie. we should always use ref.
From: Michael Ellerman <hidden> Date: 2017-08-16 12:29:55
On Fri, 2017-08-11 at 20:05:41 UTC, Dan Carpenter wrote:
There is a typo so we call unlock instead of lock.
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Dan Carpenter <redacted>