int ppsm_set_notify_handler( void *handle, FnNotifyCbck cbx, void *clientinfo );
This function registers a notification handler that you want to be called whenever there's a state change. The arguments are:
The ppsm_set_notify_handler() function returns -1 on error.
The prototype of the handler is as follows:
void my_handler ( void *handle, int cpuid, void *clientinfo );
Whenever the performance state changes, the library calls this function, passing the following:
The handler doesn't return anything.