Skip to content
Snippets Groups Projects
Commit e10b6064 authored by Keith Thorne's avatar Keith Thorne
Browse files

Restore cpu_up as EXPORT_SYMBOL_GPL fix2

Closes #15 Remove kernel patch changing cpu_up to EXPORT_SYMBOL
Update README in patches/linux-4.19-cs for change
Remove symbols from patched kernel in src/drv/ExtraSymbols.symvers
Add parameter in GNUmakefile to build will reference Module.symvers from kernel
parent f63f765f
No related branches found
No related tags found
1 merge request!36Restore cpu_up as EXPORT_SYMBOL_GPL fix2
......@@ -4,7 +4,7 @@ linux kernel 4.19 for CDS real-time. Both the patch and config file are needed
- For LIGO CDS, use the final -cs files (not -aei-cs)
- Basic CDS patch - adds CPU Shutdown, cpu_up EXPORT_SYMBOL
- Basic CDS patch - adds CPU Shutdown only
kernel-4.19-cs.patch
- Custom kernel config file for Gentoo at AEI - creates monolithic kernel with a minimum of drivers
......
diff -r -u -d linux-source-4.19.orig/arch/x86/kernel/smpboot.c linux-source-4.19.cs/arch/x86/kernel/smpboot.c
--- linux-source-4.19.orig/arch/x86/kernel/smpboot.c 2019-04-27 02:36:41.000000000 -0500
+++ linux-source-4.19.cs/arch/x86/kernel/smpboot.c 2019-09-04 10:44:14.997185804 -0500
diff -Naur linux-source-4.19.orig/arch/x86/kernel/smpboot.c linux-source-4.19.cs/arch/x86/kernel/smpboot.c
--- linux-source-4.19.orig/arch/x86/kernel/smpboot.c 2019-08-16 03:12:54.000000000 -0500
+++ linux-source-4.19.cs/arch/x86/kernel/smpboot.c 2019-12-02 15:39:56.407306004 -0600
@@ -1559,6 +1559,18 @@
common_cpu_die(cpu);
}
......@@ -31,15 +31,3 @@ diff -r -u -d linux-source-4.19.orig/arch/x86/kernel/smpboot.c linux-source-4.19
}
static bool wakeup_cpu0(void)
diff -r -u -d linux-source-4.19.orig/kernel/cpu.c linux-source-4.19.cs/kernel/cpu.c
--- linux-source-4.19.orig/kernel/cpu.c 2019-08-07 21:02:38.000000000 -0500
+++ linux-source-4.19.cs/kernel/cpu.c 2019-09-04 10:44:14.997185804 -0500
@@ -1160,7 +1160,7 @@
{
return do_cpu_up(cpu, CPUHP_ONLINE);
}
-EXPORT_SYMBOL_GPL(cpu_up);
+EXPORT_SYMBOL(cpu_up);
#ifdef CONFIG_PM_SLEEP_SMP
static cpumask_var_t frozen_cpus;
......@@ -16,9 +16,5 @@
0x00000000 sci_unexport_segment / EXPORT_SYMBOL
0x00000000 sci_disconnect_segment / EXPORT_SYMBOL
0x00000000 sci_unmap_segment / EXPORT_SYMBOL
0x00000000 cpu_up / EXPORT_SYMBOL
0x00000000 printkl / EXPORT_SYMBOL
0x00000000 set_fe_code_idle / EXPORT_SYMBOL
0x00000000 is_cpu_taken_by_rcg_model / EXPORT_SYMBOL
0x00000000 vprintkl / EXPORT_SYMBOL
0x00000000 ligo_get_gps_driver_offset / EXPORT_SYMBOL
......@@ -4,7 +4,7 @@ PWD := $(shell pwd)
KDIR := /lib/modules/$(shell uname -r)/build
#include "Makefile"
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) modules
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) M=$(PWD) modules
clean:
rm -f *.o *.ko Module.symvers *.mod.c .*.cmd $(MODULENAME)_test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment