Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343593
b: refs/heads/master
c: 0ca0d81
h: refs/heads/master
i:
  343591: 09a0112
v: v3
  • Loading branch information
Zhang Yanfei authored and Marcelo Tosatti committed Dec 11, 2012
1 parent a29c180 commit 4fefdd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49f8a1a5394d8baee5e56fb71e5cf993c228689a
refs/heads/master: 0ca0d818cbcbcac75a02833861b6fc42a98b904e
3 changes: 2 additions & 1 deletion trunk/arch/x86/include/asm/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ struct kimage_arch {
};
#endif

extern void (*crash_vmclear_loaded_vmcss)(void);
typedef void crash_vmclear_fn(void);
extern crash_vmclear_fn __rcu *crash_vmclear_loaded_vmcss;

#endif /* __ASSEMBLY__ */

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ int in_crash_kexec;
*
* protected by rcu.
*/
void (*crash_vmclear_loaded_vmcss)(void) = NULL;
crash_vmclear_fn __rcu *crash_vmclear_loaded_vmcss = NULL;
EXPORT_SYMBOL_GPL(crash_vmclear_loaded_vmcss);

static inline void cpu_crash_vmclear_loaded_vmcss(void)
{
void (*do_vmclear_operation)(void) = NULL;
crash_vmclear_fn *do_vmclear_operation = NULL;

rcu_read_lock();
do_vmclear_operation = rcu_dereference(crash_vmclear_loaded_vmcss);
Expand Down

0 comments on commit 4fefdd1

Please sign in to comment.