xen/sched: Drop set_current_state()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Oct 2018 14:28:28 +0000 (15:28 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Oct 2018 17:34:55 +0000 (18:34 +0100)
This appears to have been a Linux-ism which found its way into the Xen
codebase with the IA64 port, and remained after IA64 was removed.

As far as I can tell from code archeology, none of the other architectures
have ever had a current->state field.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/include/xen/sched.h

index c5540fa32f95fbe9bcc7f14206d3230c42d335f0..0ddff03a3042fbb445bb9ba6e8d0845f039a8120 100644 (file)
@@ -620,7 +620,6 @@ void __domain_crash(struct domain *d);
  */
 void noreturn asm_domain_crash_synchronous(unsigned long addr);
 
-#define set_current_state(_s) do { current->state = (_s); } while (0)
 void scheduler_init(void);
 int  sched_init_vcpu(struct vcpu *v, unsigned int processor);
 void sched_destroy_vcpu(struct vcpu *v);