mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
sysctl: Enable PARISC "unaligned-trap" to be used cross-arch
PARISC defines /proc/sys/kernel/unaligned-trap to runtime toggle unaligned access emulation. The exact mechanics of enablig/disabling are still arch specific, we can make the sysctl usable by other arches. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Helge Deller <deller@gmx.de> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org> Cc: Helge Deller <deller@gmx.de> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Serge Hallyn <serge.hallyn@canonical.com>
This commit is contained in:
parent
4d86dfbbda
commit
bf14e3b979
3 changed files with 14 additions and 0 deletions
|
@ -157,6 +157,9 @@ extern int sysctl_tsb_ratio;
|
|||
|
||||
#ifdef __hppa__
|
||||
extern int pwrsw_enabled;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSCTL_ARCH_UNALIGN_ALLOW
|
||||
extern int unaligned_enabled;
|
||||
#endif
|
||||
|
||||
|
@ -545,6 +548,8 @@ static struct ctl_table kern_table[] = {
|
|||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_SYSCTL_ARCH_UNALIGN_ALLOW
|
||||
{
|
||||
.procname = "unaligned-trap",
|
||||
.data = &unaligned_enabled,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue