Skip to content

Commit 126e575

Browse files
committed
Merge tag 'pull-headers_param' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull asm/param cleanup from Al Viro: "This massages asm/param.h to simpler and more uniform shape: - all arch/*/include/uapi/asm/param.h are either generated includes of <asm-generic/param.h> or a #define or two followed by such include - no arch/*/include/asm/param.h anywhere, generated or not - include <asm/param.h> resolves to arch/*/include/uapi/asm/param.h of the architecture in question (or that of host in case of uml) - include/asm-generic/param.h pulls uapi/asm-generic/param.h and deals with USER_HZ, CLOCKS_PER_SEC and with HZ redefinition after that" * tag 'pull-headers_param' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: loongarch, um, xtensa: get rid of generated arch/$ARCH/include/asm/param.h alpha: regularize the situation with asm/param.h xtensa: get rid uapi/asm/param.h
2 parents ce3f5bb + 2560014 commit 126e575

8 files changed

Lines changed: 8 additions & 55 deletions

File tree

arch/alpha/include/asm/param.h

Lines changed: 0 additions & 12 deletions
This file was deleted.

arch/alpha/include/uapi/asm/param.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
#ifndef _UAPI_ASM_ALPHA_PARAM_H
33
#define _UAPI_ASM_ALPHA_PARAM_H
44

5-
#define HZ 1024
6-
5+
#define __USER_HZ 1024
76
#define EXEC_PAGESIZE 8192
87

9-
#ifndef NOGROUP
10-
#define NOGROUP (-1)
11-
#endif
12-
13-
#define MAXHOSTNAMELEN 64 /* max length of hostname */
8+
#include <asm-generic/param.h>
149

1510
#endif /* _UAPI_ASM_ALPHA_PARAM_H */

arch/loongarch/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ generic-y += user.h
1010
generic-y += ioctl.h
1111
generic-y += mmzone.h
1212
generic-y += statfs.h
13-
generic-y += param.h
1413
generic-y += text-patching.h

arch/um/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ generic-y += mcs_spinlock.h
1515
generic-y += mmiowb.h
1616
generic-y += module.h
1717
generic-y += module.lds.h
18-
generic-y += param.h
1918
generic-y += parport.h
2019
generic-y += percpu.h
2120
generic-y += preempt.h

arch/xtensa/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ generated-y += syscall_table.h
33
generic-y += extable.h
44
generic-y += kvm_para.h
55
generic-y += mcs_spinlock.h
6-
generic-y += param.h
76
generic-y += parport.h
87
generic-y += qrwlock.h
98
generic-y += qspinlock.h

arch/xtensa/include/uapi/asm/param.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

include/asm-generic/param.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
# undef HZ
88
# define HZ CONFIG_HZ /* Internal kernel timer frequency */
9-
# define USER_HZ 100 /* some user interfaces are */
9+
# define USER_HZ __USER_HZ /* some user interfaces are */
1010
# define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */
1111
#endif /* __ASM_GENERIC_PARAM_H */

include/uapi/asm-generic/param.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
#ifndef _UAPI__ASM_GENERIC_PARAM_H
33
#define _UAPI__ASM_GENERIC_PARAM_H
44

5+
#ifndef __USER_HZ
6+
#define __USER_HZ 100
7+
#endif
8+
59
#ifndef HZ
6-
#define HZ 100
10+
#define HZ __USER_HZ
711
#endif
812

913
#ifndef EXEC_PAGESIZE

0 commit comments

Comments
 (0)