Skip to content

Commit feceb63

Browse files
ebiedermLinus Torvalds
authored andcommitted
[PATCH] sysctl: s390: move sysctl definitions to sysctl.h
We need to have the the definition of all top level sysctl directories registers in sysctl.h so we don't conflict by accident and cause abi problems. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8d8cb8a commit feceb63

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎arch/s390/appldata/appldata.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
#define APPLDATA_RECORD_NET_SUM_ID 0x03 /* must be < 256 ! */
2222
#define APPLDATA_RECORD_PROC_ID 0x04
2323

24-
#define CTL_APPLDATA 2120 /* sysctl IDs, must be unique */
25-
#define CTL_APPLDATA_TIMER 2121
24+
#define CTL_APPLDATA_TIMER 2121 /* sysctl IDs, must be unique */
2625
#define CTL_APPLDATA_INTERVAL 2122
2726
#define CTL_APPLDATA_MEM 2123
2827
#define CTL_APPLDATA_OS 2124

‎arch/s390/kernel/debug.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,6 @@ debug_finish_entry(debug_info_t * id, debug_entry_t* active, int level,
852852
static int debug_stoppable=1;
853853
static int debug_active=1;
854854

855-
#define CTL_S390DBF 5677
856855
#define CTL_S390DBF_STOPPABLE 5678
857856
#define CTL_S390DBF_ACTIVE 5679
858857

‎arch/s390/mm/cmm.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ cmm_skip_blanks(char *cp, char **endp)
256256
}
257257

258258
#ifdef CONFIG_CMM_PROC
259-
/* These will someday get removed. */
260-
#define VM_CMM_PAGES 1111
261-
#define VM_CMM_TIMED_PAGES 1112
262-
#define VM_CMM_TIMEOUT 1113
263259

264260
static struct ctl_table cmm_table[];
265261

‎include/linux/sysctl.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ enum
7070
CTL_BUS=8, /* Busses */
7171
CTL_ABI=9, /* Binary emulation */
7272
CTL_CPU=10, /* CPU stuff (speed scaling, etc) */
73+
CTL_APPLDATA=2120, /* s390 appldata */
74+
CTL_S390DBF=5677, /* s390 debug */
7375
CTL_SUNRPC=7249, /* sunrpc debug */
7476
CTL_PM=9899, /* frv power management */
7577
CTL_FRV=9898, /* frv specific sysctls */
@@ -205,6 +207,11 @@ enum
205207
VM_PANIC_ON_OOM=33, /* panic at out-of-memory */
206208
VM_VDSO_ENABLED=34, /* map VDSO into new processes? */
207209
VM_MIN_SLAB=35, /* Percent pages ignored by zone reclaim */
210+
211+
/* s390 vm cmm sysctls */
212+
VM_CMM_PAGES=1111,
213+
VM_CMM_TIMED_PAGES=1112,
214+
VM_CMM_TIMEOUT=1113,
208215
};
209216

210217

0 commit comments

Comments
 (0)