summaryrefslogtreecommitdiffstats
path: root/src/target/firmware
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-17 19:21:46 +0800
committerHarald Welte <laforge@gnumonks.org>2010-03-17 19:21:46 +0800
commit75b6fe2d84e21a3fa4fa574c77d40e6a0933d7f9 (patch)
treefad986e4ad79b5974d881f7ce12f4c441534c12f /src/target/firmware
parent7f60fda60d76ad4b28631f360b4deb4989123abe (diff)
remove 'l1s.task' value for local DSP task checking
As the check no longer works with our higher-levle schedulers, we can remove this field from the l1s structure and all references to it.
Diffstat (limited to 'src/target/firmware')
-rw-r--r--src/target/firmware/include/layer1/sync.h2
-rw-r--r--src/target/firmware/layer1/sync.c12
2 files changed, 4 insertions, 10 deletions
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h
index e448cf1a..6bdb57ac 100644
--- a/src/target/firmware/include/layer1/sync.h
+++ b/src/target/firmware/include/layer1/sync.h
@@ -30,8 +30,6 @@ struct l1s_state {
uint32_t tpu_offset;
- int task;
-
/* Transmit queues of pending packets for main DCCH and ACCH */
struct llist_head tx_queue[_NUM_L1S_CHAN];
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c
index fcf1f461..38794158 100644
--- a/src/target/firmware/layer1/sync.c
+++ b/src/target/firmware/layer1/sync.c
@@ -374,10 +374,6 @@ static void l1_sync(void)
dsp_api.ndb->d_error_status = 0;
}
-#if 0
- if (l1s.task != dsp_api.db_r->d_task_md)
- printf("DSP task (%u) and L1S task (%u) disagree\n", dsp_api.db_r->d_task_md, l1s.task);
-#endif
/* execute the sched_items that have been scheduled for this TDMA frame */
tdma_sched_execute();
@@ -448,7 +444,7 @@ static int l1s_fbdet_cmd(__unused uint8_t p1, __unused uint8_t fb_mode,
}
/* Program DSP */
- l1s.task = dsp_api.db_w->d_task_md = FB_DSP_TASK; /* maybe with I/Q swap? */
+ dsp_api.db_w->d_task_md = FB_DSP_TASK; /* maybe with I/Q swap? */
dsp_api.ndb->d_fb_mode = fb_mode;
dsp_end_scenario();
last_task_fnr = dsp_api.frame_ctr;
@@ -726,7 +722,7 @@ static int l1s_sbdet_cmd(__unused uint8_t p1, __unused uint8_t p2,
{
putchart('S');
- l1s.task = dsp_api.db_w->d_task_md = SB_DSP_TASK;
+ dsp_api.db_w->d_task_md = SB_DSP_TASK;
dsp_api.ndb->d_fb_mode = 0; /* wideband search */
dsp_end_scenario();
@@ -762,7 +758,7 @@ static int l1s_pm_cmd(__unused uint8_t p1,
{
putchart('P');
- l1s.task = dsp_api.db_w->d_task_md = 2;
+ dsp_api.db_w->d_task_md = 2;
dsp_api.ndb->d_fb_mode = 0; /* wideband search */
dsp_end_scenario();
last_task_fnr = dsp_api.frame_ctr;
@@ -893,7 +889,7 @@ static int l1s_nb_resp(__unused uint8_t p1, uint8_t burst_id, uint16_t p3)
l1_queue_for_l2(msg);
/* clear downlink task */
- l1s.task = dsp_api.db_w->d_task_d = 0;
+ dsp_api.db_w->d_task_d = 0;
}
/* mark READ page as being used */