mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
arm64: cpuinfo: compat task get hwcap from compat_hwcap_str
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
@@ -552,7 +552,8 @@ static int c_show(struct seq_file *m, void *v)
|
||||
* software which does already (at least for 32-bit).
|
||||
*/
|
||||
seq_puts(m, "Features\t:");
|
||||
if (personality(current->personality) == PER_LINUX32) {
|
||||
if (personality(current->personality) == PER_LINUX32 ||
|
||||
is_compat_task()) {
|
||||
#ifdef CONFIG_COMPAT
|
||||
for (j = 0; compat_hwcap_str[j]; j++)
|
||||
if (COMPAT_ELF_HWCAP & (1 << j))
|
||||
|
||||
Reference in New Issue
Block a user