]> git.pld-linux.org Git - packages/xorg-driver-video-nvidia-legacy-304xx.git/blob - linux-4.10.patch
- up to 304.135
[packages/xorg-driver-video-nvidia-legacy-304xx.git] / linux-4.10.patch
1 diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
2 index e7068e3..3ac3c0b 100644
3 --- a/kernel/nv-linux.h
4 +++ b/kernel/nv-linux.h
5 @@ -270,7 +270,7 @@ RM_STATUS nvos_forward_error_to_cray(struct pci_dev *, NvU32,
6  
7  extern int nv_pat_mode;
8  
9 -#if !defined(NV_VMWARE) && defined(CONFIG_HOTPLUG_CPU)
10 +#if !defined(NV_VMWARE) && defined(CONFIG_HOTPLUG_CPU) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0))
11  #define NV_ENABLE_HOTPLUG_CPU
12  #include <linux/cpu.h>              /* CPU hotplug support              */
13  #include <linux/notifier.h>         /* struct notifier_block, etc       */
14 diff --git a/kernel/nv-pat.c b/kernel/nv-pat.c
15 index a725533..91070e0 100644
16 --- a/kernel/nv-pat.c
17 +++ b/kernel/nv-pat.c
18 @@ -210,14 +210,20 @@ nvidia_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu
19  
20      switch (action)
21      {
22 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
23          case CPU_DOWN_FAILED:
24 +#endif
25          case CPU_ONLINE:
26              if (cpu == (NvUPtr)hcpu)
27                  nv_setup_pat_entries(NULL);
28              else
29                  NV_SMP_CALL_FUNCTION(nv_setup_pat_entries, hcpu, 1);
30              break;
31 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
32          case CPU_DOWN_PREPARE:
33 +#else
34 +        case CPU_DOWN_PREPARE_FROZEN:
35 +#endif
36              if (cpu == (NvUPtr)hcpu)
37                  nv_restore_pat_entries(NULL);
38              else
This page took 0.056739 seconds and 3 git commands to generate.