All of lore.kernel.org
 help / color / mirror / Atom feed
* Jump Label initialization
@ 2011-09-29  2:14 Jeremy Fitzhardinge
  2011-09-29  2:28 ` David Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jeremy Fitzhardinge @ 2011-09-29  2:14 UTC (permalink / raw)
  To: Jason Baron
  Cc: Peter Zijlstra, Steven Rostedt, Linux Kernel Mailing List,
	Michael Ellerman, Jan Glauber, David Daney, David S. Miller

Hi all,

I'm trying to use the jump label machinery as part of the pv ticketlock
work I'm doing on x86.

The problem I'm having at the moment is that I do my spinlock setup in
smp_prepare_boot_cpu(), which happens before jump_label_init() gets
called, and so the latter goes and nops out all my enabled jump label key.

I'm experimenting at the moment with a patch to allow
jump_label_enable() to be called fairly early, and have that be
respected by jump_label_init().  I'm doing this by replacing
arch_jump_label_poke_text_early() with
arch_jump_label_transform_early(), which shares most of its code with
its non-early variant, except that it expects to run in a pre-SMP
environment.

Does this seem plausible? (I haven't tested it yet.)

The x86, mips and sparc patches are fairly simple; I forgot to look at
powerpc, and I didn't fully investigate s390.

While my current use-case is x86-specific, it seems generally useful to
make the jump_label machinery available as early as possible. I wonder
if you have any suggestions about how to handle this?

Thanks,
    J

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

end of thread, other threads:[~2011-09-29 22:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29  2:14 Jump Label initialization Jeremy Fitzhardinge
2011-09-29  2:28 ` David Miller
2011-09-29  7:37 ` Peter Zijlstra
2011-09-29 22:20   ` Jeremy Fitzhardinge
2011-09-29 22:23     ` Steven Rostedt
2011-09-29 12:04 ` Jan Glauber
2011-09-29 12:40   ` Steven Rostedt
2011-09-29 13:10     ` Jan Glauber
2011-09-29 16:45   ` Jeremy Fitzhardinge
2011-09-29 17:06     ` David Daney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.