@@ -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_perf_ack(ihk_os_t os, struct ikc_scd_packet *packet);
|
||||||
void mcctrl_os_read_write_cpu_response(ihk_os_t os,
|
void mcctrl_os_read_write_cpu_response(ihk_os_t os,
|
||||||
struct ikc_scd_packet *pisp);
|
struct ikc_scd_packet *pisp);
|
||||||
|
void mcctrl_event_signal(ihk_os_t os, struct ikc_scd_packet *pisp);
|
||||||
|
|
||||||
/* XXX: this runs in atomic context! */
|
/* XXX: this runs in atomic context! */
|
||||||
static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
|
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);
|
mcctrl_os_read_write_cpu_response(__os, pisp);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SCD_MSG_EVENT_SIGNAL:
|
||||||
|
mcctrl_event_signal(__os, pisp);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printk(KERN_ERR "mcctrl:syscall_packet_handler:"
|
printk(KERN_ERR "mcctrl:syscall_packet_handler:"
|
||||||
"unknown message (%d.%d.%d.%d.%d.%#lx)\n",
|
"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->ikc2linux);
|
||||||
kfree(usrdata);
|
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_CREATE 0x44
|
||||||
#define SCD_MSG_PROCFS_TID_DELETE 0x45
|
#define SCD_MSG_PROCFS_TID_DELETE 0x45
|
||||||
|
|
||||||
|
#define SCD_MSG_EVENT_SIGNAL 0x46
|
||||||
|
|
||||||
#define SCD_MSG_PERF_CTRL 0x50
|
#define SCD_MSG_PERF_CTRL 0x50
|
||||||
#define SCD_MSG_PERF_ACK 0x51
|
#define SCD_MSG_PERF_ACK 0x51
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user