powerpc: Expose TSCR via sysfs only on powernv
authorCyril Bur <cyrilbur@gmail.com>
Wed, 14 Feb 2018 03:27:06 +0000 (14:27 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Feb 2018 22:54:42 +0000 (09:54 +1100)
commitc134f0d57a47b7f8704dee1cefc246f9471f3e80
tree1da876159171790a96a2a76ab5d3941be66b498b
parent694a20dae6efc3803740971fa9f7c86b8c8d4685
powerpc: Expose TSCR via sysfs only on powernv

The TSCR can only be accessed in hypervisor mode.

Fixes: 88b5e12eeb11 ("powerpc: Expose TSCR via sysfs")
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/sysfs.c