diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2023-07-05 16:51:36 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2023-07-28 09:53:36 +0200 |
commit | c53361ce7d8771129c517dca529d2f2dc5bf04d1 (patch) | |
tree | c8c64f9c76a896102c6c293841bec7f51ea4e23e /lib/debugobjects.c | |
parent | 3f9169196be55590a794b52f49637561ddd1ba4f (diff) |
cpu/SMT: Move smt/control simple exit cases earlier
Move the simple exit cases, i.e. those which don't depend on the value
written, earlier in the function. That makes it clearer that regardless of
the input those states cannot be transitioned out of.
That does have a user-visible effect, in that the error returned will
now always be EPERM/ENODEV for those states, regardless of the value
written. Previously writing an invalid value would return EINVAL even
when in those states.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20230705145143.40545-4-ldufour@linux.ibm.com
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions