@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user