mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 14:45:04 +07:00
6e6a4932b0
When a function is used in more than one file it may not be possible to immediately tell from context what the intended meaning is. As such, it is more important that the naming be self-evident. Thus, change get_flags() to get_cpuflags(). For consistency, change check_flags() to check_cpuflags() even though it is only used in cpucheck.c. Link: http://lkml.kernel.org/r/1381450698-28710-2-git-send-email-keescook@chromium.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
13 lines
148 B
C
13 lines
148 B
C
#ifdef CONFIG_RANDOMIZE_BASE
|
|
|
|
#include "../cpuflags.c"
|
|
|
|
bool has_cpuflag(int flag)
|
|
{
|
|
get_cpuflags();
|
|
|
|
return test_bit(flag, cpu.flags);
|
|
}
|
|
|
|
#endif
|