Skip to contentSkip to conversation

xen/sched: Drop set_current_state()

PATCH In review Andrew Cooper 3 participants 3 messages Oct 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/sched: Drop set_current_state()

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.

---
CC: George Dunlap <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

---
 xen/include/xen/sched.h | 1 -
 1 file changed, 1 deletion(-)
xen/include/xen/sched.h +0 -1
index c5540fa..0ddff03 100644
@@ -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);
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 08.10.18 at 16:48, <[email protected]> wrote:

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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 7 lines · Andrew Cooper

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.

Not sure exactly what the rules are, but in case you need it:

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel