public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Does CONFIG_PARAVIRT imply usage of byte locks?
@ 2009-01-09 21:58 Jiri Kosina
  2009-01-09 22:24 ` Jiri Kosina
  2009-01-10 23:53 ` Jeremy Fitzhardinge
  0 siblings, 2 replies; 5+ messages in thread
From: Jiri Kosina @ 2009-01-09 21:58 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: linux-kernel

Hi,

in [1] Linus states that CONFIG_PARAVIRT implies usage of inferior locks.

Looking at the code, I wonder whether are we in fact really using byte 
locks in CONFIG_PARAVIRT situation? Where are we actually setting 
pv_lock_ops.spin_lock pointer to point to __byte_spin_lock?

Such initialization seems to happen only in paravirt_use_bytelocks()
function, but my blind eyes prevent me from finding a callsite from which
this function would eventually get called.

It seems to me that paravirt_use_bytelocks() is a dead code that gets 
never called, and the same applies to the implementations of write locks. 
What did I miss?

[1] http://marc.info/?l=linux-kernel&m=123144211719754&w=2

Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-12  7:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09 21:58 Does CONFIG_PARAVIRT imply usage of byte locks? Jiri Kosina
2009-01-09 22:24 ` Jiri Kosina
2009-01-10 23:53 ` Jeremy Fitzhardinge
2009-01-11 22:52   ` Jiri Kosina
2009-01-12  7:14     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox