mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Add a function to get the name of a CPU feature. The function is architecture dependent and currently only implemented for x86. The feature names are automatically generated from the cpufeatures.h include file. Signed-off-by: Alexandre Chartre <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Link: https://patch.msgid.link/[email protected]
26 lines
507 B
C
26 lines
507 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <objtool/special.h>
|
|
#include <objtool/builtin.h>
|
|
|
|
|
|
bool arch_support_alt_relocation(struct special_alt *special_alt,
|
|
struct instruction *insn,
|
|
struct reloc *reloc)
|
|
{
|
|
exit(-1);
|
|
}
|
|
|
|
struct reloc *arch_find_switch_table(struct objtool_file *file,
|
|
struct instruction *insn,
|
|
unsigned long *table_size)
|
|
{
|
|
exit(-1);
|
|
}
|
|
|
|
const char *arch_cpu_feature_name(int feature_number)
|
|
{
|
|
return NULL;
|
|
}
|