From a17b52a04357e3241a453392a82e4edd2587885e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Tue, 23 Oct 2018 16:07:35 +0200 Subject: [PATCH] hyptop: Remove unused function sd_cpu_real_type_set() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Höppner --- hyptop/dg_debugfs_lpar.c | 1 - hyptop/sd.h | 6 ------ 2 files changed, 7 deletions(-) diff --git a/hyptop/dg_debugfs_lpar.c b/hyptop/dg_debugfs_lpar.c index 58dc7938..b63b9ec5 100644 --- a/hyptop/dg_debugfs_lpar.c +++ b/hyptop/dg_debugfs_lpar.c @@ -176,7 +176,6 @@ static void l_sd_cpu_phys_fill(struct sd_sys *sys, sd_cpu_state_set(cpu, SD_CPU_STATE_UNKNOWN); } sd_cpu_mgm_time_us_set(cpu, cpu_info->mgm_time); - sd_cpu_real_type_set(cpu, cpu_type); sd_cpu_commit(cpu); } diff --git a/hyptop/sd.h b/hyptop/sd.h index cc303b90..9ba31929 100644 --- a/hyptop/sd.h +++ b/hyptop/sd.h @@ -195,7 +195,6 @@ struct sd_cpu { struct sd_info i; char id[9]; struct sd_cpu_type *type; - char real_type[CPU_TYPE_ID_LEN]; struct sd_cpu_info d1; struct sd_cpu_info d2; struct sd_cpu_info *d_cur; @@ -228,11 +227,6 @@ static inline void sd_cpu_state_set(struct sd_cpu *cpu, enum sd_cpu_state state) cpu->state = state; } -static inline void sd_cpu_real_type_set(struct sd_cpu *cpu, const char *type) -{ - strncpy(cpu->real_type, type, sizeof(cpu->real_type)); -} - static inline void sd_cpu_cpu_time_us_set(struct sd_cpu *cpu, u64 value) { cpu->d_cur->cpu_time_us = value;