Searched refs:clk_throttle (Results 1 – 2 of 2) sorted by relevance
2922 struct hl_clk_throttle *clk_throttle = &hdev->clk_throttling; in hl_handle_clk_change_event() local2925 mutex_lock(&clk_throttle->lock); in hl_handle_clk_change_event()2929 clk_throttle->current_reason |= HL_CLK_THROTTLE_POWER; in hl_handle_clk_change_event()2930 clk_throttle->aggregated_reason |= HL_CLK_THROTTLE_POWER; in hl_handle_clk_change_event()2931 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_POWER].start = ktime_get(); in hl_handle_clk_change_event()2932 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = zero_time; in hl_handle_clk_change_event()2937 clk_throttle->current_reason &= ~HL_CLK_THROTTLE_POWER; in hl_handle_clk_change_event()2938 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = ktime_get(); in hl_handle_clk_change_event()2943 clk_throttle->current_reason |= HL_CLK_THROTTLE_THERMAL; in hl_handle_clk_change_event()2944 clk_throttle->aggregated_reason |= HL_CLK_THROTTLE_THERMAL; in hl_handle_clk_change_event()[all …]
357 struct hl_info_clk_throttle clk_throttle = {0}; in clk_throttle_info() local367 clk_throttle.clk_throttling_reason = hdev->clk_throttling.current_reason; in clk_throttle_info()373 clk_throttle.clk_throttling_timestamp_us[i] = in clk_throttle_info()381 clk_throttle.clk_throttling_duration_ns[i] = in clk_throttle_info()388 return copy_to_user(out, &clk_throttle, in clk_throttle_info()389 min((size_t) max_size, sizeof(clk_throttle))) ? -EFAULT : 0; in clk_throttle_info()