Anton Blanchard cc1adb5f32 powerpc/pseries: Use jump labels for hcall tracepoints
hcall tracepoints add quite a few instructions to our hcall path:

plpar_hcall:
	mr      r2,r2
	mfcr    r0
	stw     r0,8(r1)
	b       164		<---- start
	ld      r12,0(r2)
	std     r12,32(r1)
	cmpdi   r12,0
	beq     164		<---- end
...

We have an unconditional branch that gets noped out during boot and
a load/compare/branch. We also store the tracepoint value to the
stack for the hcall_exit path to use.

By using jump labels we can simplify this to just a single nop that
gets replaced with a branch when the tracepoint is enabled:

plpar_hcall:
	mr      r2,r2
	mfcr    r0
	stw     r0,8(r1)
	nop			<----
...

If jump labels are not enabled, we fall back to the old method.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-11 16:05:58 +10:00
..
2014-04-18 14:20:41 +02:00
2014-04-18 14:20:41 +02:00
2014-04-18 14:20:41 +02:00
2012-03-28 18:30:02 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2014-05-28 13:35:35 +10:00
2013-04-18 13:03:53 +10:00
2014-06-11 19:12:23 +10:00
2014-04-09 12:53:28 +10:00
2012-03-28 18:30:02 +01:00
2014-01-23 16:36:54 -08:00
2011-11-08 14:51:46 +11:00
2014-06-25 18:49:40 -05:00
2012-03-20 21:48:30 +08:00
2011-12-08 14:02:23 +11:00
2011-05-22 08:47:53 -04:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2013-12-09 11:40:25 +11:00
2010-05-05 09:11:10 -04:00
2011-03-31 11:26:23 -03:00
2010-10-26 16:52:08 -07:00
2011-03-31 11:26:23 -03:00
2014-05-28 13:30:12 +10:00
2009-12-09 17:10:37 +11:00
2014-04-07 10:33:12 +10:00
2013-11-06 14:13:49 +11:00
2013-11-26 12:12:28 +01:00
2012-09-17 16:31:51 +10:00
2011-03-31 11:26:23 -03:00
2014-06-24 12:43:15 +10:00
2011-03-31 11:26:23 -03:00
2014-02-17 11:19:37 +11:00
2013-10-30 16:02:28 +11:00