Commit c4db0a95 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/thread: drop check for T_MOVED status bit



We don't plan for switching CPU from out-of-band context anymore, so
T_MOVED is basically pointless now.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 9064c5eb
......@@ -10,7 +10,7 @@
#include <linux/types.h>
#include <uapi/evl/sched.h>
#define EVL_ABI_LEVEL 1
#define EVL_ABI_LEVEL 2
struct evl_core_info {
__u32 abi_level;
......
......@@ -49,10 +49,9 @@
/* Local information flags (private to current thread) */
#define T_MOVED 0x00000001 /*< CPU migration request issued from OOB context */
#define T_SYSRST 0x00000002 /*< Thread awaiting syscall restart after signal */
#define T_HICCUP 0x00000004 /*< Just left from ptracing - timings wrecked */
#define T_INFAULT 0x00000008 /*< In fault handling */
#define T_SYSRST 0x00000001 /*< Thread awaiting syscall restart after signal */
#define T_HICCUP 0x00000002 /*< Just left from ptracing - timings wrecked */
#define T_INFAULT 0x00000004 /*< In fault handling */
/*
* Must follow strictly the declaration order of the state flags
......
......@@ -702,14 +702,6 @@ void evl_switch_inband(int cause)
*/
evl_propagate_schedparam_change(curr);
#ifdef CONFIG_SMP
if (curr->local_info & T_MOVED) {
curr->local_info &= ~T_MOVED;
cpu = evl_rq_cpu(curr->rq);
set_cpus_allowed_ptr(p, cpumask_of(cpu));
}
#endif
if ((curr->state & T_USER) && cause != SIGDEBUG_NONE) {
if (curr->state & T_WARN) {
/* Help debugging spurious mode switches. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment