• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/osfmk/kern/

Lines Matching defs:effective

63  *  Threads and tasks have three policy fields: requested, effective, and pending.
74 * for that subsystem by querying only the 'effective' field.
80 * 3) Run a task policy update, which recalculates effective based on requested,
90 * itself as a distinct effective policy, add it to the effective struct and add it to the
111 * Querying the effective policy does not take the task lock, to prevent deadlocks or slowdown in sensitive code.
558 info->effective = 0;
568 info->effective = task_effective_bitfield(task, THREAD_NULL);
637 * We calculate the correct effective but don't apply it to anything yet.
706 * This function updates the task or thread effective policy fields
731 * Calculate new effective policies from requested policy and task state
795 /* Snapshot the task's effective policy */
805 /* A task clamp will result in an effective QoS even when requested is UNSPECIFIED */
1775 * Functions for querying effective state for relevant subsystems
1777 * NEVER take a value from one of the 'effective' functions and stuff it into a setter.
2077 /* no effective change */
2462 info->effective = (integer_t)task_effective_bitfield(task, thread);
2471 * Each task/thread requested/effective structure is 64 bits in size. Any
2472 * given tracepoint will emit either requested or effective data, but not both.
2616 struct task_effective_policy effective =
2619 bits |= (effective.io_tier ? (((uint64_t)effective.io_tier) << POLICY_EFF_IO_TIER_SHIFT) : 0);
2620 bits |= (effective.io_passive ? POLICY_EFF_IO_PASSIVE : 0);
2621 bits |= (effective.darwinbg ? POLICY_EFF_DARWIN_BG : 0);
2622 bits |= (effective.lowpri_cpu ? POLICY_EFF_LOWPRI_CPU : 0);
2623 bits |= (effective.terminated ? POLICY_EFF_TERMINATED : 0);
2624 bits |= (effective.all_sockets_bg ? POLICY_EFF_ALL_SOCKETS_BG : 0);
2625 bits |= (effective.new_sockets_bg ? POLICY_EFF_NEW_SOCKETS_BG : 0);
2626 bits |= (effective.bg_iotier ? (((uint64_t)effective.bg_iotier) << POLICY_EFF_BG_IOTIER_SHIFT) : 0);
2627 bits |= (effective.qos_ui_is_urgent ? POLICY_EFF_QOS_UI_IS_URGENT : 0);
2630 bits |= (effective.thep_qos ? (((uint64_t)effective.thep_qos) << POLICY_EFF_TH_QOS_SHIFT) : 0);
2632 bits |= (effective.t_tal_engaged ? POLICY_EFF_TAL_ENGAGED : 0);
2633 bits |= (effective.t_suspended ? POLICY_EFF_SUSPENDED : 0);
2634 bits |= (effective.t_watchers_bg ? POLICY_EFF_WATCHERS_BG : 0);
2635 bits |= (effective.t_sup_active ? POLICY_EFF_SUP_ACTIVE : 0);
2636 bits |= (effective.t_suppressed_cpu ? POLICY_EFF_SUP_CPU : 0);
2637 bits |= (effective.t_role ? (((uint64_t)effective.t_role) << POLICY_EFF_ROLE_SHIFT) : 0);
2638 bits |= (effective.t_latency_qos ? (((uint64_t)effective.t_latency_qos) << POLICY_EFF_LATENCY_QOS_SHIFT) : 0);
2639 bits |= (effective.t_through_qos ? (((uint64_t)effective.t_through_qos) << POLICY_EFF_THROUGH_QOS_SHIFT) : 0);
2640 bits |= (effective.t_sfi_managed ? POLICY_EFF_SFI_MANAGED : 0);
2641 bits |= (effective.t_qos_ceiling ? (((uint64_t)effective.t_qos_ceiling) << POLICY_EFF_QOS_CEILING_SHIFT) : 0);