Make a build error when CONFIG_MAX_TASKS is not power of 2
Max number of tasks should be power of 2
* tasks built into the design).
*/
+#if CONFIG_MAX_TASKS & (CONFIG_MAX_TASKS - 1)
+#error "Max number of tasks(CONFIG_MAX_TASKS) should be power of 2"
+#endif
#define MAX_TASKS_MASK (CONFIG_MAX_TASKS-1)
#define PIDHASH(pid) ((pid) & MAX_TASKS_MASK)
