timer: Change timer util functions to 64-bit
Since mono_time is now 64-bit, the utility functions interfacing with mono_time should also be 64-bit so precision isn't lost. Fixed build errors related to printing the now int64_t result of stopwatch_duration_[m|u]secs in various places. BUG=b:237082996 BRANCH=All TEST=Boot dewatt Change-Id: I169588f5e14285557f2d03270f58f4c07c0154d5 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66170 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
@@ -800,7 +800,7 @@ static void configure_xhci_host_mode_port0(void)
|
||||
}
|
||||
}
|
||||
|
||||
printk(BIOS_INFO, "xHCI port 0 host switch over took %lu ms\n",
|
||||
printk(BIOS_INFO, "xHCI port 0 host switch over took %lld ms\n",
|
||||
stopwatch_duration_msecs(&sw));
|
||||
}
|
||||
|
||||
|
@@ -44,5 +44,5 @@ void cf9_reset_prepare(void)
|
||||
}
|
||||
mdelay(1);
|
||||
}
|
||||
printk(BIOS_SPEW, "CSE took %lu ms\n", stopwatch_duration_msecs(&sw));
|
||||
printk(BIOS_SPEW, "CSE took %lld ms\n", stopwatch_duration_msecs(&sw));
|
||||
}
|
||||
|
@@ -67,7 +67,7 @@ static void configure_host_mode_port0(struct device *dev)
|
||||
}
|
||||
}
|
||||
|
||||
printk(BIOS_INFO, "XDCI port 0 host switch over took %lu ms\n",
|
||||
printk(BIOS_INFO, "XDCI port 0 host switch over took %lld ms\n",
|
||||
stopwatch_duration_msecs(&sw));
|
||||
}
|
||||
|
||||
|
@@ -315,7 +315,7 @@ uint8_t cse_wait_sec_override_mode(void)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
printk(BIOS_DEBUG, "HECI: CSE took %lu ms to enter security override mode\n",
|
||||
printk(BIOS_DEBUG, "HECI: CSE took %lld ms to enter security override mode\n",
|
||||
stopwatch_duration_msecs(&sw));
|
||||
return 1;
|
||||
}
|
||||
@@ -335,7 +335,7 @@ uint8_t cse_wait_com_soft_temp_disable(void)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
printk(BIOS_SPEW, "HECI: CSE took %lu ms to boot from RO\n",
|
||||
printk(BIOS_SPEW, "HECI: CSE took %lld ms to boot from RO\n",
|
||||
stopwatch_duration_msecs(&sw));
|
||||
return 1;
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ enum cb_err phy_gmii_ready(void *base)
|
||||
|
||||
} while (!stopwatch_expired(&sw));
|
||||
|
||||
printk(BIOS_ERR, "%s Timeout after %ld msec\n", __func__,
|
||||
printk(BIOS_ERR, "%s Timeout after %lld msec\n", __func__,
|
||||
stopwatch_duration_msecs(&sw));
|
||||
return CB_ERR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user