How power efficient is k_msgq_get() in zephyr/include/generated/syscalls/kernal.h?

I have a product running on an nrf5340 and part of it is running a nordic sample project. In the sample project there is a call to `k_msgq_get()`. The program spends a lot of time waiting on this msgq() call. I want to know, how power efficient is the chip while running within this? If I am trying to maximize power savings, would it be worth it to write some logic to put the chip to sleep instead of waiting on the msgq() call? Particularly if I'm not concerned about the potential lag?

Parents
  • Hello Jedediah Heal,

    Could you please tell which samples you have tried to implement this function? If you are getting high current what is the value? You may try to use k_sleep() function for putting the CPU for the duration of time you require and see if it helps to get less power. K_msgq_get and k_sleep are different functions but I think CPU sleeps for both cases. 

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Reply
  • Hello Jedediah Heal,

    Could you please tell which samples you have tried to implement this function? If you are getting high current what is the value? You may try to use k_sleep() function for putting the CPU for the duration of time you require and see if it helps to get less power. K_msgq_get and k_sleep are different functions but I think CPU sleeps for both cases. 

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Children
No Data
Related