Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*
*** 4563,4583 ****
}
static void
issue_cmd_xscale(struct megasas_cmd *cmd, struct megasas_instance *instance)
{
! atomic_add_16(&instance->fw_outstanding, 1);
/* Issue the command to the FW */
WR_IB_QPORT((host_to_le32(cmd->frame_phys_addr) >> 3) |
(cmd->frame_count - 1), instance);
}
static void
issue_cmd_ppc(struct megasas_cmd *cmd, struct megasas_instance *instance)
{
! atomic_add_16(&instance->fw_outstanding, 1);
/* Issue the command to the FW */
WR_IB_QPORT((host_to_le32(cmd->frame_phys_addr)) |
(((cmd->frame_count - 1) << 1) | 1), instance);
}
--- 4563,4583 ----
}
static void
issue_cmd_xscale(struct megasas_cmd *cmd, struct megasas_instance *instance)
{
! atomic_inc_16(&instance->fw_outstanding);
/* Issue the command to the FW */
WR_IB_QPORT((host_to_le32(cmd->frame_phys_addr) >> 3) |
(cmd->frame_count - 1), instance);
}
static void
issue_cmd_ppc(struct megasas_cmd *cmd, struct megasas_instance *instance)
{
! atomic_inc_16(&instance->fw_outstanding);
/* Issue the command to the FW */
WR_IB_QPORT((host_to_le32(cmd->frame_phys_addr)) |
(((cmd->frame_count - 1) << 1) | 1), instance);
}