[Skiboot] [PATCH 23/34] cpu: Remove unused cpu_free_job()

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Jul 24 09:27:17 AEST 2016


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 core/cpu.c    | 9 ---------
 include/cpu.h | 3 ---
 2 files changed, 12 deletions(-)

diff --git a/core/cpu.c b/core/cpu.c
index 47c39c1..d3a858a 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -160,15 +160,6 @@ void cpu_wait_job(struct cpu_job *job, bool free_it)
 		free(job);
 }
 
-void cpu_free_job(struct cpu_job *job)
-{
-	if (!job)
-		return;
-
-	assert(job->complete);
-	free(job);
-}
-
 void cpu_process_jobs(void)
 {
 	struct cpu_thread *cpu = this_cpu();
diff --git a/include/cpu.h b/include/cpu.h
index 62f5629..fcd886b 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -238,9 +238,6 @@ extern bool cpu_poll_job(struct cpu_job *job);
  */
 extern void cpu_wait_job(struct cpu_job *job, bool free_it);
 
-/* Free a CPU job, only call on a completed job */
-extern void cpu_free_job(struct cpu_job *job);
-
 /* Called by init to process jobs */
 extern void cpu_process_jobs(void);
 /* Fallback to running jobs synchronously for global jobs */
-- 
2.7.4



More information about the Skiboot mailing list