projects
/
linux-libre-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 firmware: fix [-Wpacked-not-aligned] warnings
[linux-libre-firmware.git]
/
ath9k_htc
/
target_firmware
/
magpie_fw_dev
/
target
/
rompatch
/
cmnos_clock_patch.c
diff --git
a/ath9k_htc/target_firmware/magpie_fw_dev/target/rompatch/cmnos_clock_patch.c
b/ath9k_htc/target_firmware/magpie_fw_dev/target/rompatch/cmnos_clock_patch.c
index 83594c2f028a708775632cf19af1b7b393b7b01f..c71007ecd148062214a845c431097b20e81b2376 100755
(executable)
--- a/
ath9k_htc/target_firmware/magpie_fw_dev/target/rompatch/cmnos_clock_patch.c
+++ b/
ath9k_htc/target_firmware/magpie_fw_dev/target/rompatch/cmnos_clock_patch.c
@@
-38,7
+38,7
@@
a_uint32_t ref_clk = 0;
extern a_uint32_t cticks;
a_uint32_t ref_clk = 0;
extern a_uint32_t cticks;
-// clock change
+// clock change
//
void cmnos_clock_init_patch(a_uint32_t refclk)
{
//
void cmnos_clock_init_patch(a_uint32_t refclk)
{
@@
-57,7
+57,7
@@
void cmnos_delay_us_patch(int us)
{
a_uint32_t start_time = NOW();
unsigned int num_ticks = us*ref_clk; // system_freq == number of ticks per 1us
{
a_uint32_t start_time = NOW();
unsigned int num_ticks = us*ref_clk; // system_freq == number of ticks per 1us
-
+
while ( (NOW() - start_time) < num_ticks) {
/* busy spin */
;
while ( (NOW() - start_time) < num_ticks) {
/* busy spin */
;
@@
-84,6
+84,6
@@
void cmnos_tick_patch(void)
a_uint32_t cmnos_milliseconds_patch(void)
{
cmnos_tick_patch();
a_uint32_t cmnos_milliseconds_patch(void)
{
cmnos_tick_patch();
-
+
return (cticks);
}
return (cticks);
}