sparc: Handle negative offsets in arch_jump_label_transform
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 24 Oct 2016 18:49:25 +0000 (19:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 02:11:17 +0000 (19:11 -0700)
commit9d9fa230206a3aea6ef451646c97122f04777983
tree75dd2bfcaaccb7a90c7e8b7dd4fd176640a06f03
parentb429ae4d5b565a71dfffd759dfcd4f6c093ced94
sparc: Handle negative offsets in arch_jump_label_transform

Additionally, if the offset will overflow the immediate for a ba,pt
instruction, fall back on a standard ba to get an extra 3 bits.

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/jump_label.c