summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-23 13:00:33 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-23 13:00:33 +0900
commitee92bb15b361b3daee816a4e930be0032be2d9e7 (patch)
tree7c179b6a662ffaa1f44759701e05d95257c5a758
parent5458b77d360be2a7c5393f57c3d30399a8b87f29 (diff)
Remove deprecated API
-rw-r--r--ChangeLog5
-rw-r--r--chopstx.c47
-rw-r--r--chopstx.h4
-rw-r--r--example-fs-bb48/tty.h (renamed from example-fs-bb48/stream.h)0
4 files changed, 9 insertions, 47 deletions
diff --git a/ChangeLog b/ChangeLog
index 4194e28..eca1bf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-20 NIIBE Yutaka <gniibe@fsij.org>
+
+ * chopstx.c (chopstx_usec_wait_var): internal function.
+ (chopstx_wakeup_usec_wait): Remove.
+
2016-05-19 NIIBE Yutaka <gniibe@fsij.org>
* VERSION: 0.11.
diff --git a/chopstx.c b/chopstx.c
index baa0edd..a407086 100644
--- a/chopstx.c
+++ b/chopstx.c
@@ -1115,16 +1115,8 @@ chx_snooze (uint32_t state, uint32_t *usec_p)
return r;
}
-/**
- * chopstx_usec_wait_var - Sleep for micro seconds (specified by variable)
- * @var: Pointer to usec
- *
- * Sleep for micro seconds, specified by @var.
- * Another thread can clear @var to stop the caller going into sleep.
- *
- * This function is DEPRECATED. Please use chopstx_poll.
- */
-void
+
+static void
chopstx_usec_wait_var (uint32_t *var)
{
int r = 0;
@@ -1422,11 +1414,11 @@ chx_cond_hook (struct chx_px *px, struct chx_poll_head *pd)
/**
- * chopstx_claim_irq - Claim interrupt request to handle by this thread
+ * chopstx_claim_irq - Claim interrupt request to handle
* @intr: Pointer to INTR structure
* @irq_num: IRQ Number (hardware specific)
*
- * Claim interrupt @intr with @irq_num for this thread.
+ * Claim interrupt @intr with @irq_num
*/
void
chopstx_claim_irq (chopstx_intr_t *intr, uint8_t irq_num)
@@ -1648,37 +1640,6 @@ chx_join_hook (struct chx_px *px, struct chx_poll_head *pd)
/**
- * chopstx_wakeup_usec_wait - wakeup the sleeping thread for timer
- * @thd: Thread to be awakened
- *
- * Canceling the timer, wake up the sleeping thread.
- * No return value.
- *
- * This function is DEPRECATED. Please use chopstx_cond_signal,
- * where sleeping process calls chopstx_poll.
- */
-void
-chopstx_wakeup_usec_wait (chopstx_t thd)
-{
- struct chx_thread *tp = (struct chx_thread *)thd;
- int yield = 0;
-
- chx_cpu_sched_lock ();
- if (tp->state == THREAD_WAIT_TIME)
- {
- ((struct chx_stack_regs *)tp->tc.reg[REG_SP])->reg[REG_R0] = 1;
- chx_timer_dequeue (tp);
- chx_ready_enqueue (tp);
- if (tp->prio > running->prio)
- yield = 1;
- }
- if (yield)
- chx_sched (CHX_YIELD);
- else
- chx_cpu_sched_unlock ();
-}
-
-/**
* chopstx_cancel - request a cancellation to a thread
* @thd: Thread to be canceled
*
diff --git a/chopstx.h b/chopstx.h
index e39c36b..94eb5b0 100644
--- a/chopstx.h
+++ b/chopstx.h
@@ -113,12 +113,8 @@ typedef struct chx_cleanup {
void chopstx_cleanup_push (chopstx_cleanup_t *clp);
void chopstx_cleanup_pop (int execute);
-
void chopstx_setpriority (chopstx_prio_t);
-void chopstx_usec_wait_var (uint32_t *arg); /* DEPRECATED */
-void chopstx_wakeup_usec_wait (chopstx_t thd); /* DEPRECATED */
-
enum {
CHOPSTX_POLL_COND = 0,
CHOPSTX_POLL_INTR,
diff --git a/example-fs-bb48/stream.h b/example-fs-bb48/tty.h
index 77b7014..77b7014 100644
--- a/example-fs-bb48/stream.h
+++ b/example-fs-bb48/tty.h