bats.c (597473720f4dc69749542bfcfed4a927a43d935e) | bats.c (12c3f1fd87bf4e55f06d079a45d6f15e2f6f9750) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright 2018, Christophe Leroy CS S.I. 4 * <christophe.leroy@c-s.fr> 5 * 6 * This dumps the content of BATS 7 */ 8 --- 135 unchanged lines hidden (view full) --- 144 BAT_SHOW_603(m, 7, SPRN_DBAT7L, SPRN_DBAT7U, true); 145 } 146 147 return 0; 148} 149 150static int bats_open(struct inode *inode, struct file *file) 151{ | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright 2018, Christophe Leroy CS S.I. 4 * <christophe.leroy@c-s.fr> 5 * 6 * This dumps the content of BATS 7 */ 8 --- 135 unchanged lines hidden (view full) --- 144 BAT_SHOW_603(m, 7, SPRN_DBAT7L, SPRN_DBAT7U, true); 145 } 146 147 return 0; 148} 149 150static int bats_open(struct inode *inode, struct file *file) 151{ |
152 if (cpu_has_feature(CPU_FTR_601)) | 152 if (IS_ENABLED(CONFIG_PPC_BOOK3S_601)) |
153 return single_open(file, bats_show_601, NULL); 154 155 return single_open(file, bats_show_603, NULL); 156} 157 158static const struct file_operations bats_fops = { 159 .open = bats_open, 160 .read = seq_read, --- 13 unchanged lines hidden --- | 153 return single_open(file, bats_show_601, NULL); 154 155 return single_open(file, bats_show_603, NULL); 156} 157 158static const struct file_operations bats_fops = { 159 .open = bats_open, 160 .read = seq_read, --- 13 unchanged lines hidden --- |