add SCD_MSG_EVENT_SIGNAL

refs #862
This commit is contained in:
Tomoki Shirasawa
2017-07-03 14:49:13 +09:00
parent 5a9bee55c9
commit 4236323661
2 changed files with 13 additions and 0 deletions

View File

@ -56,6 +56,7 @@ void sig_done(unsigned long arg, int err);
void mcctrl_perf_ack(ihk_os_t os, struct ikc_scd_packet *packet);
void mcctrl_os_read_write_cpu_response(ihk_os_t os,
struct ikc_scd_packet *pisp);
void mcctrl_event_signal(ihk_os_t os, struct ikc_scd_packet *pisp);
/* XXX: this runs in atomic context! */
static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
@ -120,6 +121,10 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
mcctrl_os_read_write_cpu_response(__os, pisp);
break;
case SCD_MSG_EVENT_SIGNAL:
mcctrl_event_signal(__os, pisp);
break;
default:
printk(KERN_ERR "mcctrl:syscall_packet_handler:"
"unknown message (%d.%d.%d.%d.%d.%#lx)\n",
@ -394,3 +399,9 @@ void destroy_ikc_channels(ihk_os_t os)
kfree(usrdata->ikc2linux);
kfree(usrdata);
}
void
mcctrl_event_signal(ihk_os_t os, struct ikc_scd_packet *pisp)
{
ihk_os_event_signal(os, 0);
}

View File

@ -92,6 +92,8 @@
#define SCD_MSG_PROCFS_TID_CREATE 0x44
#define SCD_MSG_PROCFS_TID_DELETE 0x45
#define SCD_MSG_EVENT_SIGNAL 0x46
#define SCD_MSG_PERF_CTRL 0x50
#define SCD_MSG_PERF_ACK 0x51